Skip to content

Instantly share code, notes, and snippets.

@dunglas
Created November 22, 2012 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dunglas/4132807 to your computer and use it in GitHub Desktop.
Save dunglas/4132807 to your computer and use it in GitHub Desktop.
Un sleep inutile
// Prestashop 1.5.2, controllers/front/AuthController.php, line 278
$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');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment