diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-06-06 15:56:06 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-06-06 15:56:06 +0100 |
commit | 9e743c7069a7286bf9c8bd176dd452d123e1218d (patch) | |
tree | afdde06af1d4f11a0ba65cc617bad0438392c702 | |
parent | Fix bugs with database (diff) | |
download | synapse-9e743c7069a7286bf9c8bd176dd452d123e1218d.tar.xz |
Make servlet clearer
-rw-r--r-- | synapse/rest/client/v2_alpha/account.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index 657afb495a..8f046c4263 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -227,7 +227,7 @@ class MsisdnPasswordRequestTokenRestServlet(RestServlet): defer.returnValue((200, ret)) -class ThreepidSubmitTokenServlet(RestServlet): +class PasswordResetSubmitTokenServlet(RestServlet): """Handles 3PID validation token submission""" PATTERNS = [ re.compile("^/_synapse/password_reset/(email|msisdn)/submit_token/*$"), @@ -238,7 +238,7 @@ class ThreepidSubmitTokenServlet(RestServlet): Args: hs (synapse.server.HomeServer): server """ - super(ThreepidSubmitTokenServlet, self).__init__() + super(PasswordResetSubmitTokenServlet, self).__init__() self.hs = hs self.auth = hs.get_auth() self.config = hs.config @@ -638,7 +638,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) + PasswordResetSubmitTokenServlet(hs).register(http_server) PasswordRestServlet(hs).register(http_server) DeactivateAccountRestServlet(hs).register(http_server) EmailThreepidRequestTokenRestServlet(hs).register(http_server) |