![]() |
|
#1
|
||||
|
||||
![]()
Although not an instruction on where and how to fix (mostly because I'm off to bed in a few), I read somewhere once that the best way to make usernames feel case insensitive during the log-in process is to use a strtolower() function on both the username entered and on the data collected from the database. It won't matter how it's stored in the database or how the user entered it, as both are being converted to lowercase strings just during the checking process.
However, checking like this should also be done during the registration process, of course, to convert whatever the user submitted to lowercase, and running against the database usernames (also converted to lowercase), to make sure no user names exist sharing those letters (regardless of case). In no case are the usernames being stored or displayed as anything other than how they were initially registered, it'd be just for checking on the backend. (Although some propose saving a second column that is a version of the user's username, only lowercase, for faster checking.) Would anyone else like to take it from here? (PS: While we're at fixing the registration usernames, this bug over here needs fixing, too.)
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 01-09-2015 at 01:55 AM. |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Usernames not transferring to forum database. | NobodysHero | Questions and Supports | 3 | 02-11-2014 12:09 AM |
Case sensitive. | Xius | Questions and Supports | 16 | 09-23-2009 05:48 PM |
Usernames case sensitive. | Xius | Questions and Supports | 4 | 05-06-2009 08:30 PM |
Adoptables Showing Max Level when that isn't the case | rosepose | Questions and Supports | 17 | 03-18-2009 06:42 PM |
What's New? |
What's Hot? |
What's Popular? |