Force lowercase in login in create account
Editing this because it needs a description.
Some users have two accounts, one with lowercase and one with uppercase.
The main issue here is that we have a link with KM Server and KM Server still has accouns with both lowercase and uppercase versions of users.
So what do we do now ?
In that order :
-
Remove dupe accounts from KM Server's database with the help of the last_login_at
field. -
Add a migration to merge lowercase/uppercase accounts if they are the very same users on KM App instances -
Add this to KM Server first then to KM App. -
a lower()
function to User SQL queries -
a .toLowerCase()
function to username inputs.
-
Edited by Leon