Skip to content

Instantly share code, notes, and snippets.

@maartenwolfsen
Last active December 10, 2019 19:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maartenwolfsen/b8e41e15f8a0597cf510a84be56b65c5 to your computer and use it in GitHub Desktop.
Save maartenwolfsen/b8e41e15f8a0597cf510a84be56b65c5 to your computer and use it in GitHub Desktop.
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