// Do not redirect to account creation when email does not exist
This commit is contained in:
1 parent
5102715f36
commit
47f8213ece
1 file changed
+1
-11
@@ -280,17 +280,7 @@ class AuthControllerCore extends FrontController
|
|||||||
{
|
{
|
||||||
// Handle brute force attacks
|
// Handle brute force attacks
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
$this->errors[] = Tools::displayError('Authentication failed');
|
||||||
if (!Customer::customerExists($email))
|
|
||||||
{
|
|
||||||
$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');
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user