summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-06-06 15:11:16 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-06-06 15:11:16 +0100
commit1fd217c7cbbadcb9638741e7ab625f76b25dc1d5 (patch)
treed215e105e5b12e9aa6b97da8c69f590ac7ce4d94 /synapse/rest
parentMerge branch 'anoa/hs_password_reset_sending_email' into anoa/hs_password_reset (diff)
downloadsynapse-1fd217c7cbbadcb9638741e7ab625f76b25dc1d5.tar.xz
update endpoint
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/account.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index 9cb18c5b94..3e33b5b551 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/synapse/rest/client/v2_alpha/account.py
@@ -229,7 +229,7 @@ class MsisdnPasswordRequestTokenRestServlet(RestServlet):
 class ThreepidSubmitTokenServlet(RestServlet):
     """Handles 3PID validation token submission"""
     PATTERNS = [
-        re.compile("/_synapse/password_reset/validate/(email|msisdn)/submitToken/*$"),
+        re.compile("^/_synapse/password_reset/(email|msisdn)/submit_token/*$"),
     ]
 
     def __init__(self, hs):
@@ -237,6 +237,7 @@ class ThreepidSubmitTokenServlet(RestServlet):
         Args:
             hs (synapse.server.HomeServer): server
         """
+        super(ThreepidSubmitTokenServlet, self).__init__()
         self.hs = hs
         self.auth = hs.get_auth()
         self.config = hs.config
@@ -640,6 +641,7 @@ class WhoamiRestServlet(RestServlet):
 def register_servlets(hs, http_server):
     EmailPasswordRequestTokenRestServlet(hs).register(http_server)
     MsisdnPasswordRequestTokenRestServlet(hs).register(http_server)
+    ThreepidSubmitTokenServlet(hs).register(http_server)
     PasswordRestServlet(hs).register(http_server)
     DeactivateAccountRestServlet(hs).register(http_server)
     EmailThreepidRequestTokenRestServlet(hs).register(http_server)