From ac1d854256e18fb458e5a5bbd93e72a985da5be3 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 16 Oct 2009 11:34:45 +1300 Subject: [PATCH] Allow username/e-mail for forgotten password to be case-insensitive. --- inc/Session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/Session.php b/inc/Session.php index c9eba66..405d6b4 100644 --- a/inc/Session.php +++ b/inc/Session.php @@ -627,10 +627,10 @@ EOTEXT; $password_sent = false; $where = ""; if ( isset($username) && $username != "" ) { - $where = "WHERE active AND usr.username = ". qpg($username ); + $where = "WHERE active AND lower(usr.username) = ". qpg(strtolower($username)); } else if ( isset($email_address) && $email_address != "" ) { - $where = "WHERE active AND usr.email = ". qpg($email_address ); + $where = "WHERE active AND lower(usr.email) = ". qpg(strtolower($email_address)); } if ( $where != "" ) { -- 2.11.4.GIT