Do not auto login customer after passsword reset

This commit is contained in:
Abhishek Kumar
2023-08-25 22:10:26 +05:30
parent ccace94c38
commit eedbb9c69e

View File

@@ -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.');