Skip to content

Commit

Permalink
#15255 unlock customer after password reset
Browse files Browse the repository at this point in the history
  • Loading branch information
andreagaspardo authored and gelanivishal committed Jun 20, 2018
1 parent e47b0d7 commit a108233
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 @@ -624,6 +624,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 a108233

Please sign in to comment.