Remove Space from Email/Password Sign In of ISC

Problem

Customer may copy/paste email/password with space resulting login fail.

Solution

This mod will trim email/password POST variables before processing.

At /includes/classes/class.customer.php (line 6)

Find

if (isset($_POST['login_email']) && isset($_POST['login_pass'])) {

Replace

if (isset($_POST['login_email']) && isset($_POST['login_pass'])) {
	$_POST['login_email'] = trim($_POST['login_email']);
	$_POST['login_pass'] = trim($_POST['login_pass']);

Leave a Reply

Your email address will not be published. Required fields are marked *