From 398cbc7d1c4a23188b11a0aa4b4aa5c9ae236226 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 28 Jan 2014 15:03:23 -0600
Subject: [PATCH] Use case-insensitive matching on email address

This patch addresses an issue where a client may have upper-case letters in
their email address. When visiting the client portal to check the ticket
status, previously, the exact same case would be required in the 'Email
Address' box.

This patch removes the case sensitivity for email logins.
---
 include/class.usersession.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.usersession.php b/include/class.usersession.php
index e77f65fac..d65a64719 100644
--- a/include/class.usersession.php
+++ b/include/class.usersession.php
@@ -117,7 +117,7 @@ class ClientSession extends Client {
 
     function ClientSession($email, $id){
         parent::Client($id, $email);
-        $this->session= new UserSession($email);
+        $this->session= new UserSession(strtolower($email));
     }
 
     function isValid(){
-- 
GitLab