fix undefined $auth_enabled after auth refactor
Publish Docker image / build (push) Failing after 3s

This commit is contained in:
Daniel committed 2026-04-07 13:07:45 +02:00
1 parent 994cca7d7e
commit bd1eddbe62
1 file changed
+4 -3
+4 -3
View File
@@ -19,9 +19,10 @@ function loadAuth(): ?array {
} }
session_start(); session_start();
$auth = loadAuth(); $auth = loadAuth();
$first_run = $auth === null; $first_run = $auth === null;
$logged_in = !$first_run && !empty($_SESSION['koncad_auth']); $auth_enabled = !$first_run;
$logged_in = !$first_run && !empty($_SESSION['koncad_auth']);
// ─── Helpers ───────────────────────────────────────────────────────────────── // ─── Helpers ─────────────────────────────────────────────────────────────────
function dedent(array $lines): array { function dedent(array $lines): array {