Skip to content

Commit

Permalink
ENGCOM-2061: #15255 unlock customer after password reset #16255
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov authored Jun 21, 2018
2 parents f21146e + c2b8a5b commit d61e00d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Customer/Model/AccountManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ public function resetPassword($email, $resetToken, $newPassword)
$customerSecure->setRpToken(null);
$customerSecure->setRpTokenCreatedAt(null);
$customerSecure->setPasswordHash($this->createPasswordHash($newPassword));
$this->getAuthentication()->unlock($customer->getId());
$this->sessionManager->destroy();
$this->destroyCustomerSessions($customer->getId());
$this->customerRepository->save($customer);
Expand Down

0 comments on commit d61e00d

Please sign in to comment.