Remove bind_email param from dinsic-specific code
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user