diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-02-06 18:31:27 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-02-06 18:31:27 +0100 |
| commit | a832ad277fe58b6fb1c4fc3cbe86d170443ac31c (patch) | |
| tree | 6b175a9109d0b4b96066b79ecbe7fb6b6e339139 /lib | |
| parent | 8fc521f1be099d7c29d8dcff0d501a64e89b1a51 (diff) | |
also set dummy User on login page, fixes #6236
Closes #6236
Merge request studip/studip!4716
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/authentication/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/authentication/Manager.php b/lib/authentication/Manager.php index b7e9ce8..4267de4 100644 --- a/lib/authentication/Manager.php +++ b/lib/authentication/Manager.php @@ -93,9 +93,9 @@ class Manager } } if (!$user) { - if ($this->nobody && !Request::get('again')) { + if ($this->nobody && !Request::get('again') || match_route('dispatch.php/login')) { $this->setAuthenticatedUser(User::build(['user_id' => 'nobody', 'perms' => null])); - } elseif (!match_route('dispatch.php/login')) { + } else { return false; } } |
