From eedbb9c69e31730dbb09022f1c2bfceed332a2cb Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 25 Aug 2023 22:10:26 +0530 Subject: [PATCH] Do not auto login customer after passsword reset --- controllers/front/PasswordController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/controllers/front/PasswordController.php b/controllers/front/PasswordController.php index f5c8c38fd..317818c87 100644 --- a/controllers/front/PasswordController.php +++ b/controllers/front/PasswordController.php @@ -84,9 +84,6 @@ class PasswordControllerCore extends FrontController '{passwd}' => $password ); if (Mail::Send($this->context->language->id, 'password', Mail::l('Your new password'), $mail_params, $customer->email, $customer->firstname.' '.$customer->lastname)) { - - $this->context->updateCustomer($customer); - $this->context->smarty->assign(array('confirmation' => 1, 'customer_email' => $customer->email)); } else { $this->errors[] = Tools::displayError('An error occurred while sending the email.');