aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/authentication/Manager.php4
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;
}
}