parse-community / parse-community/parse-server
case insensitive login
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
We want that our users can case insensitive login. That's with the current version not possible. Currently we are storing the usernames twice: username, which is lower cased, for login and usernameDisplay, which saves how the user entered the username at the sign up, not lower cased. When the user logs in, we have to lower case the username before calling the login function.
Since usernames/emails are case insensitive it would be a good feature that logins are also case insensitive.
There's only one line that has to be adjusted:
.find('_User', query)
->
.find('_User', query, { caseInsensitive: true })
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/Routers/UsersRouter.js at the login query around line 77. Confirm how the user lookup is built there and verify that the completed change allows usernames and emails with differing letter case to authenticate successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100