Skip to content

Commit

Permalink
fixup! fix: Move login via email logic to local backend
Browse files Browse the repository at this point in the history
  • Loading branch information
susnux committed Feb 4, 2025
1 parent 2cf36e4 commit f4aec55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/User/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ private function loadUser(string $loginName, bool $tryEmail = true): bool {

// Not found by UID so we try also for email, load uid for email.
if ($tryEmail) {
/** @var string|null $uid Psalm does not get the type correct here */
[$uid] = [...$this->config->getUsersForUserValue('settings', 'email', mb_strtolower($loginName)), null];

// If found, try loading it
if ($uid !== null && $uid !== $loginName) {
$result = $this->loadUser($uid, false);
Expand Down

0 comments on commit f4aec55

Please sign in to comment.