From 47f8213eceb830f46765555d9e77170c4f3c9a9e Mon Sep 17 00:00:00 2001 From: rGaillard Date: Tue, 23 Oct 2012 12:43:18 +0000 Subject: [PATCH] // Do not redirect to account creation when email does not exist --- controllers/front/AuthController.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index 26effdaea..e1bc64ba3 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -280,17 +280,7 @@ class AuthControllerCore extends FrontController { // Handle brute force attacks sleep(1); - - if (!Customer::customerExists($email)) - { - $this->create_account = true; - $this->context->smarty->assign('email_create', Tools::safeOutput($email)); - $_POST['email'] = $email; - if ($this->ajax) - $this->errors[] = Tools::displayError('Authentication failed'); - } - else - $this->errors[] = Tools::displayError('Authentication failed'); + $this->errors[] = Tools::displayError('Authentication failed'); } else {