Skip to content

Commit b5bda2d

Browse files
committed
BUG#AC-2235: Customer who exceeded max login failures not able to login even after reset password
1 parent cd826aa commit b5bda2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ public function resetPassword($email, $resetToken, $newPassword)
726726
$customerSecure->setRpToken(null);
727727
$customerSecure->setRpTokenCreatedAt(null);
728728
$customerSecure->setPasswordHash($this->createPasswordHash($newPassword));
729+
$customerSecure->setFailuresNum(0);
730+
$customerSecure->setFirstFailure(null);
731+
$customerSecure->setLockExpires(null);
729732
$this->sessionCleaner->clearFor((int)$customer->getId());
730733
$this->customerRepository->save($customer);
731734

0 commit comments

Comments
 (0)