Skip to content

Commit 893d065

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

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
@@ -428,15 +428,8 @@ public function logClientIn($user,
428428
return false;
429429
}
430430

431-
if ($isTokenPassword) {
432-
$dbToken = $this->tokenProvider->getToken($password);
433-
$userFromToken = $this->manager->get($dbToken->getUID());
434-
$isValidEmailLogin = $userFromToken->getEMailAddress() === $user
435-
&& $this->validateTokenLoginName($userFromToken->getEMailAddress(), $dbToken);
436-
} else {
437431
$users = $this->manager->getByEmail($user);
438432
$isValidEmailLogin = (\count($users) === 1 && $this->login($users[0]->getUID(), $password));
439-
}
440433

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

0 commit comments

Comments
 (0)