Case sensitive Usernames?
Posted: 2013-05-22 03:36
I note that Appgini converts all upper case characters in Username to lower case and stores them in the database as such. Passwords do appear to be case sensitive.
I would prefer to maintain Usernames with case sensitivity as they are initially entered, if possible.
Looks like the code below in membership_signup.php is what converts the Username to lowercase;
Can anybody advise if there is a good reason why the Usernames are converted to lowercase and if there is any issue with saving them in the original case as entered?
And if it is OK to maintain case sensitivity, what code is necessary to change, apart from the strtolower above and the line "if(sqlValue("select count(1) from membership_users where lcase(memberID)='$memberID'"))" in the same file, to get it to work and keep the case sensitivity?
Thanks.
I would prefer to maintain Usernames with case sensitivity as they are initially entered, if possible.
Looks like the code below in membership_signup.php is what converts the Username to lowercase;
Code: Select all
if($_POST['signUp']!=''){
// receive data
$memberID=makeSafe(strtolower($_POST['newUsername']));
And if it is OK to maintain case sensitivity, what code is necessary to change, apart from the strtolower above and the line "if(sqlValue("select count(1) from membership_users where lcase(memberID)='$memberID'"))" in the same file, to get it to work and keep the case sensitivity?
Thanks.