Skip to content

Commit 94db8ff

Browse files
ENGCOM-2060: #15255 unlock customer after password reset #16256
- Merge Pull Request #16256 from vgelani/magento2:2.3-develop-PR-port-15534 - Merged commits: 1. a108233
2 parents e47b0d7 + a108233 commit 94db8ff

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)