Description
Issue Description
Let's say there is a User with username elonmusk and email elon@musk.com.
The problem is, that another user can create another account, with username ElonMusk and email Elon@Musk.com.
The username uniqueness case-sensitivity might be a feature, not a bug, I don't know. But I think it should be case insensitive. For example, twitter.com/elonmusk is the same Musk as twitter.com/ElonMusk and this is how it works on most apps, I think.
However, the email uniqueness case-sensitivity is obviously a bug, because elon@musk.com and Elon@Musk.com is the same email address, which means that more users can have the same email, which means it is not unique.
Steps to reproduce
Just create two Users in the dashboard and try filling the same email/username. It throws an error. Now try with different capitalization. It works.
Expected Results
When defining username or email field, it should check that there is no user with the same username or email, regardless of letters capitalization.
Actual Outcome
It allows creating another user with the same username/email, just different letter capitalization.
Environment Setup
-
Server
- parse-server version: 2.5.3
- Operating System: WINDOWS
- Localhost or remote server: LOCAL
-
Database
- MongoDB: MLAB.COM
Maybe @drew-gross could be interested in this issue?
Thanks!