From d72b5c4eb6afce5821fd91d0d55a0a1add1f587f Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 14 Feb 2012 17:10:01 +0000 Subject: [PATCH] [-] FO : #PSTEST-742 - Bad ajax return on authentification with unknow email address --- controllers/front/AuthController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index 6ed5a7fbd..d85e28e55 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -287,6 +287,8 @@ class AuthControllerCore extends FrontController $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');