Skip to content

Commit

Permalink
ENGCOM-2060: #15255 unlock customer after password reset #16256
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov authored Jun 21, 2018
2 parents 7a308a2 + 94db8ff commit 8843aa2
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 8843aa2

Please sign in to comment.