summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-01-24 11:07:24 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-01-24 11:07:47 +0100
commit9a72b70630e111639243c6ab7867c4d4b970e2df (patch)
treead6093863aacce5d273989a7a6cf8ea2723cd681 /synapse/rest/client/v2_alpha
parentMerge pull request #2816 from matrix-org/rav/metrics_comments (diff)
downloadsynapse-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.py4
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(