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

Fix token request for addition of phone numbers
This commit is contained in:
David Baker 2017-03-24 10:32:57 +00:00 committed by GitHub
commit e36950dec5
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ class MsisdnThreepidRequestTokenRestServlet(RestServlet):
if existingUid is not None: if existingUid is not None:
raise SynapseError(400, "MSISDN is already in use", Codes.THREEPID_IN_USE) 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)) defer.returnValue((200, ret))