' : '';
}
return $html;
}
plugin_register_menu('authentik', 'einstellungen', null, 'admin');
plugin_register_menu('Mein authentik-Konto', 'konto'); // für alle Mitarbeiter: das eigene Konto verknüpfen
plugin_register_login('start', 'authentik_login_start');
plugin_register_login('link', 'authentik_link_start', true);
plugin_register_login('callback', 'authentik_login_callback', true); // gleiche Rückkehr-Adresse für Anmelden und Verknüpfen
if (function_exists('plugin_register_customer_login')) { // Server 1.0.52 oder neuer
plugin_register_customer_login('start', 'authentik_customer_start');
plugin_add_filter('customer.login.buttons', function ($html) {
if (!authentik_customer_ready()) return $html;
$cfg = authentik_config();
return $html . '' . authentik_button_icon() . e($cfg['label']) . '';
});
}
plugin_add_filter('staff.login.buttons', function ($html) {
if (!authentik_ready()) return $html;
$cfg = authentik_config();
return $html . '' . authentik_button_icon() . e($cfg['label']) . '';
});