Skip to content

Commit a74b0c1

Browse files
committed
MAGETWO-93628: Shopping cart is emptied after reset password procedure
1 parent 69ae0a6 commit a74b0c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ public function resetPassword($email, $resetToken, $newPassword)
705705
if ($this->sessionManager->isSessionExists()) {
706706
//delete old session and move data to the new session
707707
//use this instead of $this->sessionManager->regenerateId because last one doesn't delete old session
708+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
708709
session_regenerate_id(true);
709710
}
710711
$this->customerRepository->save($customer);

0 commit comments

Comments
 (0)