parse-community / parse-community/parse-server

case insensitive login

Open
#7,143 17 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.