-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Handling of upper and lower case of e-mail addresses #7016
Comments
It's not necessarily a valid assumption that |
Although it seems all major email providers have decided to ignore case in localpart. |
A question I'd like to understand the answer to is this: beyond "they could be registered to different accounts", what problems are actually caused by having |
Due to before mentioned aspects, I'd hypothesise that the vast majority of users would not expect case sensitivity. Unintentionally entered [email protected] on registration could lead to issues when trying to login using [email protected] |
I feel like a better way to solve this problem is a "did you mean |
You need your address for a password reset. Which account will be reseted? Both accounts? The first one in database? https://github.com/matrix-org/synapse/blob/master/synapse/handlers/auth.py#L842-L850
In a few functions it is realized, but not in all. |
I believe that doing some sort of normalization in this situation is standard in web frameworks -- Django does something like this (and recently had a CVE due to it). (Looking at their code they do also send a password reset to all matching users -- being careful to use the emails from the database, not the user submitted email.) |
In addition, it is requested by specs:
|
I feel like this is the same discussion as matrix-org/matrix-spec-proposals#2265 (or at least should happen there since it's more of a spec thing than just a Synapse implementation detail) |
Due to the handling of upper and lower case of e-mail addresses, you can register the same e-mail address several times.
I will create a PR.
Description
Steps to reproduce
Version information
If not matrix.org:
Version: 1.11.0
Install method: Debian Package
The text was updated successfully, but these errors were encountered: