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

Password reset capitalization #5807

Closed
Tracked by #5809
M123-dev opened this issue Oct 3, 2021 · 4 comments
Closed
Tracked by #5809

Password reset capitalization #5807

M123-dev opened this issue Oct 3, 2021 · 4 comments
Labels
🐛 bug This is a bug, not a feature request. 🔐 Password reset 👥 User management

Comments

@M123-dev
Copy link
Member

M123-dev commented Oct 3, 2021

Describe the bug

If you want to reset your password but enter the email with the wrong capitalization, it says "There is no account with this email".

To Reproduce

Try requesting a password reset email, but make the first letter uppercase (or lowercase)

Expected behavior

The capitalization should be ignored

Type of device

Browser (Firefox)

@alexgarel
Copy link
Member

I'll give it a try as a first bug.

@alexgarel
Copy link
Member

Huuuum, in fact we never apply transformations on email addresses, so that ain't so easy.

I checked in prod, we have something like 10215 out of 110262 users which registered with an email with a capital letter inside.

What I propose:

  1. I will implement a fix that will work on most case: if the email is not found as is, try with lower cased email
  2. We should open up a new bug to understand if we want to always lowercase email addresses in our database (or at least in user_emails.sto ?). That could be only for new registrations.

@stephanegigandet any though on second point ?

@stephanegigandet
Copy link
Contributor

Thanks @alexgarel. I think it would make a lot of sense to lowercase all emails in user_emails.sto (existing and new) so that we solve the issue for emails for uppercase, and not only for password reset, but also for logging in. So the approaches you suggest sound good to me.

@M123-dev
Copy link
Member Author

@alexgarel. just tried it again and it still does not work as expected, from what I can take out of 527e317

$id = lc $id;

it only makes the provided one lowercase not the saved one. Mine is saved with a capital M at the beginning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. 🔐 Password reset 👥 User management
Projects
None yet
Development

No branches or pull requests

4 participants