mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-17 15:31:19 +01:00
Minor fixes from PR feedback
This commit is contained in:
parent
0e0aee25c4
commit
65d43f3ca5
2 changed files with 3 additions and 5 deletions
|
@ -66,7 +66,7 @@ def login_id_thirdparty_from_phone(identifier):
|
||||||
"""
|
"""
|
||||||
Convert a phone login identifier type to a generic threepid identifier
|
Convert a phone login identifier type to a generic threepid identifier
|
||||||
Args:
|
Args:
|
||||||
identifier: Login identifier dict of type 'm.id.phone'
|
identifier(dict): Login identifier dict of type 'm.id.phone'
|
||||||
|
|
||||||
Returns: Login identifier dict of type 'm.id.threepid'
|
Returns: Login identifier dict of type 'm.id.threepid'
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -371,7 +371,7 @@ class RegisterRestServlet(RestServlet):
|
||||||
reqd = ('medium', 'address', 'validated_at')
|
reqd = ('medium', 'address', 'validated_at')
|
||||||
if any(x not in threepid for x in reqd):
|
if any(x not in threepid for x in reqd):
|
||||||
logger.info("Can't add incomplete 3pid")
|
logger.info("Can't add incomplete 3pid")
|
||||||
defer.returnValue()
|
return
|
||||||
|
|
||||||
yield self.auth_handler.add_threepid(
|
yield self.auth_handler.add_threepid(
|
||||||
user_id,
|
user_id,
|
||||||
|
@ -447,9 +447,7 @@ class RegisterRestServlet(RestServlet):
|
||||||
|
|
||||||
if bind_msisdn:
|
if bind_msisdn:
|
||||||
logger.info("bind_msisdn specified: binding")
|
logger.info("bind_msisdn specified: binding")
|
||||||
logger.debug("Binding msisdn %s to %s" % (
|
logger.debug("Binding msisdn %s to %s", threepid, user_id)
|
||||||
threepid, user_id
|
|
||||||
))
|
|
||||||
yield self.identity_handler.bind_threepid(
|
yield self.identity_handler.bind_threepid(
|
||||||
threepid['threepid_creds'], user_id
|
threepid['threepid_creds'], user_id
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue