[HACK] Customers copy/pasting passwords

For Articles relating to more than one ISC version
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK

Re: [HACK] Customers copy/pasting passwords

Post by Martin »

Small update to this that deals with customers who have somehow included spaces before their email address..

Open: /includes/classes/class.customer.php


Code: Select all

$email = $GLOBALS['ISC_CLASS_DB']->Quote($_POST['login_email']);
Replace with:

Code: Select all

$email = $GLOBALS['ISC_CLASS_DB']->Quote(trim($_POST['login_email']));

This helps deal with a common issue I get with customers who seem to have auto-form-filling utilities for some reason..

Post Reply