[-] FO : #PSTEST-742 - Bad ajax return on authentification with unknow email address

This commit is contained in:
mDeflotte
2012-02-14 17:10:01 +00:00
parent cc344f3639
commit d72b5c4eb6
+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');