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

email comparisons in the auth module fail is auth data in uppercase #787

Open
DavidiBeMe opened this issue Apr 24, 2023 · 1 comment
Open

Comments

@DavidiBeMe
Copy link

We have populated our web2py auth database via a script and the emails were entered in uppercase. When we tried to login, we received the "invalid credentials" error message.

After investigation, we found that the comparisons on the email address were based on lowercase and did not convert the values to lowercase. I also noticed that if you create your login accounts via the UI, it converts the email address to lower case during account creation. This means that this issue is primarily for the cases where the auth user database is populated via a script. Either we would need to specify that the data must be entered always in lowercase or we need to modify all the comparisons performed in auth.py to compare in lowercase.

@mdipierro
Copy link
Contributor

Can you provide a more concrete example?

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

No branches or pull requests

2 participants