diff options
author | Erik Johnston <erik@matrix.org> | 2019-06-11 17:25:16 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-06-11 17:25:16 +0100 |
commit | 7e68691ce947cac0a470d8b8df3332958686ccc1 (patch) | |
tree | 75987c8c6556edf9d14dd5878c1c63a5fae2e5fb /synapse/rest | |
parent | Merge branch 'release-v1.0.0' of github.com:matrix-org/synapse into develop (diff) | |
parent | 1.0.0 (diff) | |
download | synapse-7e68691ce947cac0a470d8b8df3332958686ccc1.tar.xz |
Merge branch 'master' of github.com:matrix-org/synapse into develop
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v2_alpha/account.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index 7cfd7ae7dc..ab75f6c2b2 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -15,7 +15,6 @@ # See the License for the specific language governing permissions and # limitations under the License. import logging -import re from six.moves import http_client @@ -231,9 +230,11 @@ class MsisdnPasswordRequestTokenRestServlet(RestServlet): class PasswordResetSubmitTokenServlet(RestServlet): """Handles 3PID validation token submission""" - PATTERNS = [ - re.compile("^/_synapse/password_reset/(?P<medium>[^/]*)/submit_token/*$"), - ] + PATTERNS = client_patterns( + "/password_reset/(?P<medium>[^/]*)/submit_token/*$", + releases=(), + unstable=True, + ) def __init__(self, hs): """ |