Skip to content

Commit 63e2927

Browse files
committed
Merge #279 [Fix30] Revert NC change to be able to authenticate with email address - webd…
2 parents 56c8ec4 + b43e693 commit 63e2927

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
@@ -409,15 +409,8 @@ public function logClientIn($user,
409409
return false;
410410
}
411411

412-
if ($isTokenPassword) {
413-
$dbToken = $this->tokenProvider->getToken($password);
414-
$userFromToken = $this->manager->get($dbToken->getUID());
415-
$isValidEmailLogin = $userFromToken->getEMailAddress() === $user
416-
&& $this->validateTokenLoginName($userFromToken->getEMailAddress(), $dbToken);
417-
} else {
418412
$users = $this->manager->getByEmail($user);
419413
$isValidEmailLogin = (\count($users) === 1 && $this->login($users[0]->getUID(), $password));
420-
}
421414

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

0 commit comments

Comments
 (0)