summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dbkr@users.noreply.github.com>2017-03-24 10:32:57 +0000
committerGitHub <noreply@github.com>2017-03-24 10:32:57 +0000
commite36950dec50cd494eb5906418a58b0976d38ee5a (patch)
treea8f7788e4107eefd095bd7c20014ceffbe38f265 /synapse
parentMerge pull request #2056 from matrix-org/dbkr/fix_invite_reject (diff)
parentOops, remove unintentional change (diff)
downloadsynapse-e36950dec50cd494eb5906418a58b0976d38ee5a.tar.xz
Merge pull request #2055 from matrix-org/dbkr/fix_add_msisdn_requestToken
Fix token request for addition of phone numbers
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v2_alpha/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index aac76edf1c..4990b22b9f 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/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))