gobb icon indicating copy to clipboard operation
gobb copied to clipboard

Make usernames case insensitive

Open stevenleeg opened this issue 11 years ago • 3 comments

It's possible to create usernames with the same name but different cases, which is a problem. Make usernames case insensitive when registering, checking, and logging in.

stevenleeg avatar Feb 18 '14 17:02 stevenleeg

So is testUsername going to be different, or the same as testusername or TeStUsErNaMe?

cwaldren avatar Feb 19 '14 04:02 cwaldren

I believe it will see them as two separate usernames and allow them to coexist.

stevenleeg avatar Feb 19 '14 05:02 stevenleeg

Before authentication, force the input to lowercase strings.ToLower("MyUsername"). And always store the username in original format (i.e. the one provided by the user). Additionally/Optionally store key value set of both (lowercase version and original)

ocrumbs avatar Feb 21 '14 01:02 ocrumbs