From 20cfa8e2666e4ace93808ca6983356d527f4a92a 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13321 b9a71923-0436-4b27-9f14-aed3839534dd --- 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');