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');