Skip to content

Commit ab33362

Browse files
ENGCOM-1987: #15255 unlock customer after password reset #15534
- Merge Pull Request #15534 from andreagaspardo/magento2:2.2-develop - Merged commits: 1. 18bbf21
2 parents e697bc4 + 18bbf21 commit ab33362

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
@@ -610,6 +610,7 @@ public function resetPassword($email, $resetToken, $newPassword)
610610
$customerSecure->setRpToken(null);
611611
$customerSecure->setRpTokenCreatedAt(null);
612612
$customerSecure->setPasswordHash($this->createPasswordHash($newPassword));
613+
$this->getAuthentication()->unlock($customer->getId());
613614
$this->sessionManager->destroy();
614615
$this->destroyCustomerSessions($customer->getId());
615616
$this->customerRepository->save($customer);

0 commit comments

Comments
 (0)