1
0

Remove bind_email param from dinsic-specific code

This commit is contained in:
Andrew Morgan
2020-04-24 11:53:21 +01:00
parent ef8e78c1e6
commit cfcc4713ec
2 changed files with 2 additions and 3 deletions

View File

@@ -440,7 +440,6 @@ class RegistrationHandler(BaseHandler):
"display_name": display_name,
"username": localpart,
"password": params.get("password"),
"bind_email": params.get("bind_email"),
"bind_msisdn": params.get("bind_msisdn"),
"device_id": params.get("device_id"),
"initial_device_display_name": params.get(

View File

@@ -733,13 +733,13 @@ class RegisterRestServlet(RestServlet):
if auth_result and LoginType.EMAIL_IDENTITY in auth_result:
threepid = auth_result[LoginType.EMAIL_IDENTITY]
await self.registration_handler.register_email_threepid(
user_id, threepid, result["access_token"], body.get("bind_email")
user_id, threepid, result["access_token"]
)
if auth_result and LoginType.MSISDN in auth_result:
threepid = auth_result[LoginType.MSISDN]
await self.registration_handler.register_msisdn_threepid(
user_id, threepid, result["access_token"], body.get("bind_msisdn")
user_id, threepid, result["access_token"]
)
return result