[-] 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
This commit is contained in:
mDeflotte
2012-02-14 17:10:01 +00:00
parent 79611fef59
commit 20cfa8e266
+2
View File
@@ -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');