Skip to content

Bug or feature? #5626

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

Closed
LilMoke opened this issue May 30, 2019 · 4 comments
Closed

Bug or feature? #5626

LilMoke opened this issue May 30, 2019 · 4 comments
Labels
state:duplicate Duplicate of already reported issue

Comments

@LilMoke
Copy link

LilMoke commented May 30, 2019

Issue Description

From our iOS App we are using this call to log in a user:

PFUser.logInWithUsername(inBackground: userEmail, password: userPassword)

But if the user enters their userEmail with a different case it fails to log in. So is this a bug or is there a way to turn of case sensitive compare for the login? It would be good if I could pass a case flag of something but I do not see a part for that.

Steps to reproduce

Create a user, for example: [email protected] then try to log in and enter [email protected] and it fails to log in.

Expected Results

Actual Outcome

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : [FILL THIS OUT]
    • Operating System: [FILL THIS OUT]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): [FILL THIS OUT]
  • Database

    • MongoDB version: [FILL THIS OUT]
    • Storage engine: [FILL THIS OUT]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): [FILL THIS OUT]

Logs/Trace

@TomWFox
Copy link
Contributor

TomWFox commented May 30, 2019

Not sure if it is a bug but to avoid this problem you could just have userEmail.lowercased() for user sign up and login to ensure that user emails are always lowercase.

@LilMoke
Copy link
Author

LilMoke commented May 31, 2019 via email

@TomWFox
Copy link
Contributor

TomWFox commented May 31, 2019

That’s right, you could do that in a beforeSave trigger on the Parse.User class in your Cloud Code.

@TomWFox
Copy link
Contributor

TomWFox commented Jul 6, 2019

I think it makes sense to close this as it’s a duplicate of #3990 and is being worked on in #5634.

@TomWFox TomWFox closed this as completed Jul 6, 2019
@TomWFox TomWFox added the state:duplicate Duplicate of already reported issue label Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:duplicate Duplicate of already reported issue
Projects
None yet
Development

No branches or pull requests

3 participants