Skip to content

Commit 4e88374

Browse files
author
Stanislav Idolov
authored
ENGCOM-3387: #18256: Reset password throws error since 2.2.6. #19026
2 parents 773ae10 + d5b192f commit 4e88374

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)