Merge pull request #2055 from matrix-org/dbkr/fix_add_msisdn_requestToken

Fix token request for addition of phone numbers
pull/4/merge
David Baker 8 years ago committed by GitHub
commit e36950dec5
  1. 2
      synapse/rest/client/v2_alpha/account.py

@ -268,7 +268,7 @@ class MsisdnThreepidRequestTokenRestServlet(RestServlet):
if existingUid is not None:
raise SynapseError(400, "MSISDN is already in use", Codes.THREEPID_IN_USE)
ret = yield self.identity_handler.requestEmailToken(**body)
ret = yield self.identity_handler.requestMsisdnToken(**body)
defer.returnValue((200, ret))

Loading…
Cancel
Save