You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GetUserByEmailContext function lowers the case of the email before searching for it ( email = strings.ToLower(email) ), but the email stored in the DB is with whatever case the user entered it and is not necessarily lower case.
Also as a side note, technically only the host part of the email is case insensitive, there is nothing in the spec saying the part before the @ has to be insensitive AFAICT. It'd be dumb and confusing, but technically spec-compliant.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
AFAICT this has been introduced in b9d611e when instead of lowering the email manually a new LowerEmail was added, but here it still matches against Email.
Gitea Version
1.16.1
Git Version
No response
Operating System
No response
How are you running Gitea?
Irrelevant, I can see the bug in the code ...
Database
No response
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
The GetUserByEmailContext function lowers the case of the email before searching for it (
email = strings.ToLower(email)
), but the email stored in the DB is with whatever case the user entered it and is not necessarily lower case.Also as a side note, technically only the host part of the email is case insensitive, there is nothing in the spec saying the part before the @ has to be insensitive AFAICT. It'd be dumb and confusing, but technically spec-compliant.
Screenshots
No response
The text was updated successfully, but these errors were encountered: