[-] FO : removed deprecated configuration var "PS_VOUCHERS" #PSCFV-5240
// Removed useless DOS protection
This commit is contained in:
1 parent
a76ed36cae
commit
b861516fc0
4 files changed
+3
-10
No files matched your search
@@ -277,11 +277,7 @@ class AuthControllerCore extends FrontController
|
||||
$customer = new Customer();
|
||||
$authentication = $customer->getByEmail(trim($email), trim($passwd));
|
||||
if (!$authentication || !$customer->id)
|
||||
{
|
||||
// Handle brute force attacks
|
||||
sleep(1);
|
||||
$this->errors[] = Tools::displayError('Authentication failed');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->context->cookie->id_compare = isset($this->context->cookie->id_compare) ? $this->context->cookie->id_compare: CompareProduct::getIdCompareByIdCustomer($customer->id);
|
||||
|
||||
Reference in new issue
Block a user