diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-10 07:17:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 07:17:28 -0500 |
commit | 9562f0c2f1bd3489bfbb64fddbbd21ed657b44dd (patch) | |
tree | 89c60cececaf4b4c83784f814b840ad61d5e3baa /tests/rest/admin | |
parent | Do not allow cross-room relations, per MSC2674. (#11516) (diff) | |
download | synapse-9562f0c2f1bd3489bfbb64fddbbd21ed657b44dd.tar.xz |
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.
Diffstat (limited to 'tests/rest/admin')
-rw-r--r-- | tests/rest/admin/test_user.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/admin/test_user.py b/tests/rest/admin/test_user.py index 294d429ce1..eea675991c 100644 --- a/tests/rest/admin/test_user.py +++ b/tests/rest/admin/test_user.py @@ -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( |