Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit a108233

Browse files
andreagaspardogelanivishal
authored andcommitted
magento/magento2#15255 unlock customer after password reset
1 parent e47b0d7 commit a108233

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ public function resetPassword($email, $resetToken, $newPassword)
624624
$customerSecure->setRpToken(null);
625625
$customerSecure->setRpTokenCreatedAt(null);
626626
$customerSecure->setPasswordHash($this->createPasswordHash($newPassword));
627+
$this->getAuthentication()->unlock($customer->getId());
627628
$this->sessionManager->destroy();
628629
$this->destroyCustomerSessions($customer->getId());
629630
$this->customerRepository->save($customer);

0 commit comments

Comments
 (0)