mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 21:54:03 +00:00
Ensure emails are canonicalized before fetching associated user. (#11547)
This should fix pushers with an email in non-canonical form is used as the pushkey.
This commit is contained in:
1 parent
3b8872299a
commit
9562f0c2f1
5 files changed
+11
-4
No files matched your search
@@ -1550,7 +1550,8 @@ class UserRestTestCase(unittest.HomeserverTestCase):
|
||||
# Create user
|
||||
body = {
|
||||
"password": "abc123",
|
||||
"threepids": [{"medium": "email", "address": "bob@bob.bob"}],
|
||||
# Note that the given email is not in canonical form.
|
||||
"threepids": [{"medium": "email", "address": "Bob@bob.bob"}],
|
||||
}
|
||||
|
||||
channel = self.make_request(
|
||||
|
||||
Reference in new issue
Block a user