I wish PHPR gave us an option to simply check off whether we want the login variables to be enforced in a case sensitive basis or not (ex: place a check box in the miscellaneous tab for username and one for password).
Since they don't have that option here's what you need to add to your "Before Login" event in your login form:
//Call up the variable present in the login.php file
global $strSQL, $cUserNameField, $cPasswordField, $sUsername, $sPassword, $conn, $logged;
//fetch user records
$rs=db_query($strSQL,$conn);
$data=db_fetch_array($rs);
//If username is found in db then compare them to login input using lower case for comparison
//Only username is case insensitive here... we leave password alone since we want it to remain case-sensitive
if($data)
if(@strtolower($data[$cUserNameField]) == strtolower(trim($username)) && @$data[$cPasswordField]==$sPassword)
$logged=true;
$sUsername = $username;//declare this to pass back to login.php file
Done.