fix thinko on 3pid whitelisting

pull/2973/head
Matthew Hodgson 2018-01-24 11:07:24 +01:00
parent 75b25b3f1f
commit d82c89ac22
1 changed files with 2 additions and 2 deletions

View File

@ -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(