Skip to content

Commit b212244

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

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
@@ -457,15 +457,8 @@ public function logClientIn($user,
457457
return false;
458458
}
459459

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

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

0 commit comments

Comments
 (0)