Skip to content

Commit bc8d3d5

Browse files
committed
#18256: Reset password throws error since 2.2.6.
1 parent da1a96c commit bc8d3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,8 @@ public function resetPassword($email, $resetToken, $newPassword)
681681
$customerSecure->setRpToken(null);
682682
$customerSecure->setRpTokenCreatedAt(null);
683683
$customerSecure->setPasswordHash($this->createPasswordHash($newPassword));
684-
$this->sessionManager->destroy();
685684
$this->destroyCustomerSessions($customer->getId());
685+
$this->sessionManager->destroy();
686686
$this->customerRepository->save($customer);
687687

688688
return true;

0 commit comments

Comments
 (0)