fix undefined $auth_enabled after auth refactor
Publish Docker image / build (push) Failing after 3s
Publish Docker image / build (push) Failing after 3s
This commit is contained in:
1 parent
994cca7d7e
commit
bd1eddbe62
1 file changed
+1
@@ -21,6 +21,7 @@ function loadAuth(): ?array {
|
|||||||
session_start();
|
session_start();
|
||||||
$auth = loadAuth();
|
$auth = loadAuth();
|
||||||
$first_run = $auth === null;
|
$first_run = $auth === null;
|
||||||
|
$auth_enabled = !$first_run;
|
||||||
$logged_in = !$first_run && !empty($_SESSION['koncad_auth']);
|
$logged_in = !$first_run && !empty($_SESSION['koncad_auth']);
|
||||||
|
|
||||||
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in new issue
Block a user