Skip to content

Commit 8de27b4

Browse files
committed
Merge #263 [backport27] Revert NC change to be able to authenticate with email address
2 parents 4ac466f + 437ad79 commit 8de27b4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/private/User/Session.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -456,15 +456,8 @@ public function logClientIn($user,
456456
return false;
457457
}
458458

459-
if ($isTokenPassword) {
460-
$dbToken = $this->tokenProvider->getToken($password);
461-
$userFromToken = $this->manager->get($dbToken->getUID());
462-
$isValidEmailLogin = $userFromToken->getEMailAddress() === $user
463-
&& $this->validateTokenLoginName($userFromToken->getEMailAddress(), $dbToken);
464-
} else {
465459
$users = $this->manager->getByEmail($user);
466460
$isValidEmailLogin = (\count($users) === 1 && $this->login($users[0]->getUID(), $password));
467-
}
468461

469462
if (!$isValidEmailLogin) {
470463
$this->handleLoginFailed($throttler, $currentDelay, $remoteAddress, $user, $password);

0 commit comments

Comments
 (0)