Skip to content
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

Fix: Ability to log in with mixed case email address #2226

Merged
merged 2 commits into from
Jul 24, 2020

Conversation

codebykat
Copy link
Member

@codebykat codebykat commented Jul 23, 2020

Fix

This issue only arises in the Electron apps because App Engine authentication lowercases these arguments before creating or logging in to an account.

I also added a trim to match the App Engine logic.

Fixes #2193

Test

  1. On the standalone Electron build (not on web)
  2. Log in with any capital letters in your email address
  3. You should still be able to log in
  4. Ditto for sign up

Release

Not updated: Fixed a bug that prevented login if capital letters were typed in the email address

@codebykat codebykat added this to the 1.21 milestone Jul 23, 2020
@codebykat codebykat requested a review from a team July 23, 2020 07:09
@codebykat codebykat self-assigned this Jul 23, 2020
@codebykat codebykat mentioned this pull request Jul 23, 2020
lib/boot-without-auth.tsx Outdated Show resolved Hide resolved
lib/boot-without-auth.tsx Outdated Show resolved Hide resolved
Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like this change but it's too bad there was the discrepancy. Too bad we lower-case the email in the backend but I don't suppose we can change that.

@codebykat codebykat requested a review from dmsnell July 23, 2020 23:06
Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @codebykat - at some point we should be able to do as you suggest and move this to the backend, I think/hope

@codebykat codebykat merged commit b12138b into develop Jul 24, 2020
@codebykat codebykat deleted the fix/login-capital-letters branch July 24, 2020 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto logging out at first start. Solution: use only lower case on email field
2 participants