diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-01-24 11:07:24 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-01-24 11:07:47 +0100 |
commit | 9a72b70630e111639243c6ab7867c4d4b970e2df (patch) | |
tree | ad6093863aacce5d273989a7a6cf8ea2723cd681 /synapse/rest/client/v2_alpha | |
parent | Merge pull request #2816 from matrix-org/rav/metrics_comments (diff) | |
download | synapse-9a72b70630e111639243c6ab7867c4d4b970e2df.tar.xz |
fix thinko on 3pid whitelisting
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r-- | synapse/rest/client/v2_alpha/register.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py index 3abfe35479..c6f4680a76 100644 --- a/synapse/rest/client/v2_alpha/register.py +++ b/synapse/rest/client/v2_alpha/register.py @@ -368,8 +368,8 @@ class RegisterRestServlet(RestServlet): if auth_result: for login_type in [LoginType.EMAIL_IDENTITY, LoginType.MSISDN]: if login_type in auth_result: - medium = auth_result[login_type].threepid['medium'] - address = auth_result[login_type].threepid['address'] + medium = auth_result[login_type]['medium'] + address = auth_result[login_type]['address'] if not check_3pid_allowed(self.hs, medium, address): raise SynapseError( |