[-] FO : if th user doesn't have any account and he's still trying to log in, he will be redirected to the create account form

This commit is contained in:
mBertholino
2011-12-26 11:07:19 +00:00
parent 2c83d9bf2f
commit 8813128b44
2 changed files with 13 additions and 5 deletions
+9 -1
View File
@@ -281,7 +281,15 @@ class AuthControllerCore extends FrontController
{
// Handle brute force attacks
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;
}
else
$this->errors[] = Tools::displayError('Authentication failed');
}
else
{