diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php index 6cbcef9629e94..db092dc6ef8d4 100644 --- a/lib/private/User/Database.php +++ b/lib/private/User/Database.php @@ -374,7 +374,7 @@ public function checkPassword(string $loginName, string $password) { */ private function loadUser(string $loginName, bool $tryEmail = true): bool { if (isset($this->cache[$loginName])) { - return true; + return $this->cache[$loginName] !== false; } //guests $uid could be NULL or ''