From c55777c089a36ffbabd497e39f94388b4ee7f02f Mon Sep 17 00:00:00 2001 From: Moritz Weinmann Date: Fri, 19 Jun 2026 14:03:53 +0200 Subject: [PATCH] Login: Microsoft-Auth per Env-Variable deaktivierbar machen Im lokalen Docker-Betrieb funktioniert der Microsoft-OAuth-Flow nicht. DISABLE_MS_AUTH=1 in docker-compose.yml schaltet ihn ab und zeigt stattdessen ein einfaches Dev-Login-Formular (Eingabe der User-ID aus main_contact). Auf 0 setzen, um MS-Auth wieder zu aktivieren. Co-Authored-By: Claude Sonnet 4.6 --- module/intranet/intranet_login.php | 32 +++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/module/intranet/intranet_login.php b/module/intranet/intranet_login.php index 0544ff5..f4a89b1 100644 --- a/module/intranet/intranet_login.php +++ b/module/intranet/intranet_login.php @@ -20,7 +20,7 @@ $translation = \DynCom\mysyde\common\classes\Registry::get('translation'); -$isAzure = true; +$isAzure = getenv('DISABLE_MS_AUTH') !== '1'; if ($isAzure) { @@ -260,11 +260,33 @@ getQuote(); } } else { - - ?> - - + + + + Dev Login + + + +
+

⚠️ Dev-Login (kein Microsoft)

+
+ + + +
+

Nur lokal verfügbar — DISABLE_MS_AUTH=1 in docker-compose.yml

+
+