Skip to content

Commit c2b8a5b

Browse files
ENGCOM-2061: #15255 unlock customer after password reset #16255
- Merge Pull Request #16255 from vgelani/magento2:2.1-develop-PR-port-15534 - Merged commits: 1. be0f9bc
2 parents 76dad58 + be0f9bc commit c2b8a5b

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
@@ -586,6 +586,7 @@ public function resetPassword($email, $resetToken, $newPassword)
586586
$customerSecure->setRpToken(null);
587587
$customerSecure->setRpTokenCreatedAt(null);
588588
$customerSecure->setPasswordHash($this->createPasswordHash($newPassword));
589+
$this->getAuthentication()->unlock($customer->getId());
589590
$this->sessionManager->destroy();
590591
$this->destroyCustomerSessions($customer->getId());
591592
$this->customerRepository->save($customer);

0 commit comments

Comments
 (0)