Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.