summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-01-19 19:55:33 +0000
committerMatthew Hodgson <matthew@matrix.org>2018-01-19 19:55:38 +0000
commit49fce046243ae3e2c38ac6ac39001172667b8dfa (patch)
treee56e34533c725d8b3d2148ee30284ca57b81b2b8 /synapse/rest
parentoops, check all login types (diff)
downloadsynapse-49fce046243ae3e2c38ac6ac39001172667b8dfa.tar.xz
fix typo (thanks sytest)
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 4e73f9a40a..3abfe35479 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -366,7 +366,7 @@ class RegisterRestServlet(RestServlet):
         # guaranteed.
 
         if auth_result:
-            for login_type in [LoginType.EMAIL_IDENTITY, LoginType.EMAIL_MSISDN]:
+            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']