Skip to content

Commit

Permalink
MAGETWO-93628: Shopping cart is emptied after reset password procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
dhorytskyi committed Apr 12, 2019
1 parent 69ae0a6 commit a74b0c1
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 @@ -705,6 +705,7 @@ public function resetPassword($email, $resetToken, $newPassword)
if ($this->sessionManager->isSessionExists()) {
//delete old session and move data to the new session
//use this instead of $this->sessionManager->regenerateId because last one doesn't delete old session
// phpcs:ignore Magento2.Functions.DiscouragedFunction
session_regenerate_id(true);
}
$this->customerRepository->save($customer);
Expand Down

0 comments on commit a74b0c1

Please sign in to comment.