Last active
December 10, 2019 19:34
-
-
Save maartenwolfsen/b8e41e15f8a0597cf510a84be56b65c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Model/AccountManagement.php b/Model/AccountManagement.php | |
index 9173307a7d27..8beecffd1c86 100644 | |
--- a/Model/AccountManagement.php | |
+++ b/Model/AccountManagement.php | |
@@ -681,8 +681,8 @@ 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->sessionManager->destroy(); | |
$this->customerRepository->save($customer); | |
return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment