-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
User's Email will turn lower case automatically #10279
Comments
It is done to ensure not two registrations can be done with same email addresses. I think all mail servers/hosts treat full email address case insensitive. |
A little bit strange to the user. |
I think this should be a bug. We should add a new lower_email column to ensure the unique email address. |
I don't think it is bug as email addresses are case insensitive so I don't really see problem in lower-casing email addresses |
Hi @lafriks, sorry to bring this up, I was looking for reasons why there is lower_email field and what it purpose and found this.
So converting email to lower case by default is a bug and could possibly lead to leaking of a private data. |
They may be but to be honest I have not seen SMTP server that would treat User@example.com and user@example.com as different email addresses. In practice you can write email address in any casing combinations and it will be delivered to same user account. Problem from security perspective is that we could end up having user with the same email address otherwise |
[x]
):Description
When the user email contains capital letter, e.g.
BugHere@example.com
, Gitea will turn all capital letter to lower case, e.g.bughere@example.com
...
Screenshots
Setting Email as
BugHere@example.com
Result
The text was updated successfully, but these errors were encountered: