Username validation is not case sensitive
ShubhamPalriwala opened this issue · comments
Both laalShaitaan
and LaalShaitaan
are considered as separate usernames right now.
Ideal Case
Both should be considered as same and the API should throw an error as username not unique
Convert everything to lower case and then store it
The leaderboard should not show only ALLCAPS or smallcase, it should allow all cases and also consider
Abc
and abc
as same usernames thus throw an error
@ShubhamPalriwala should we store the username in lowerCase. in that case if the entered username was TestingEnigma the username in the db would be testingenigma. and in leaderboard it will still be testingenigma
We should score the username as they enter. Just check if there's a username that already exists irrespective of the case, if there is, throw the username not unique
error.
cools got it