-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce case insensitivity for usernames #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look good!
Another general comment:
Now you can only create one of the following usernames: "username" "USERNAME" but you can create either one, right? I.e. someone can be named "USERNAME"
Is this what we want or do we only want to allow "username"?
Exactly, its not restricting the letter casing (yet), this PR fixes only the case-sensitivity when checking for duplicates. Thought that restricting usernames to only lowercase etc. is part of another discussion 👍 |
@louilinn Thank you! I like the name change 👍 |
This PR converts all usernames to lowercase before checking if they already exist in database. This fixes a (security) problem where usernames can be used multiple times with different letter cases.