summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-03-23 18:46:17 +0000
committerDavid Baker <dave@matrix.org>2017-03-23 18:46:17 +0000
commita2dfab12c5f0d27e38595763bb44a45b91374082 (patch)
tree79bced0cebdb39d75427336505882b96e37e8671 /synapse/rest/client/v2_alpha
parentMerge pull request #1783 from pik/filter-validation (diff)
downloadsynapse-a2dfab12c5f0d27e38595763bb44a45b91374082.tar.xz
Fix token request for addition of phone numbers
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-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))