From a832ad277fe58b6fb1c4fc3cbe86d170443ac31c Mon Sep 17 00:00:00 2001 From: Elmar Ludwig Date: Fri, 6 Feb 2026 18:31:27 +0100 Subject: also set dummy User on login page, fixes #6236 Closes #6236 Merge request studip/studip!4716 --- lib/authentication/Manager.php | 4 ++-- 1 file 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; } } -- cgit v1.0