summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-10-16 18:18:41 +0100
committerMark Haines <mjark@negativecurvature.net>2015-10-16 18:18:41 +0100
commit9371a35e89c7e7145d34da4fda42cdff46ab85ba (patch)
treefb631f2a1c142dc4f58700d97f025e6ec8c4cfd2 /synapse/rest
parentMerge pull request #310 from matrix-org/markjh/bcrypt_rounds (diff)
parentsynapse.client.v1.login.LoginFallbackRestServlet and synapse.client.v1.login.... (diff)
downloadsynapse-9371a35e89c7e7145d34da4fda42cdff46ab85ba.tar.xz
Merge pull request #306 from matrix-org/markjh/unused_methods
Remove some login classes from synapse.
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/login.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py
index 2e3e4f39f3..dacc416055 100644
--- a/synapse/rest/client/v1/login.py
+++ b/synapse/rest/client/v1/login.py
@@ -192,36 +192,6 @@ class LoginRestServlet(ClientV1RestServlet):
         return (user, attributes)
 
 
-class LoginFallbackRestServlet(ClientV1RestServlet):
-    PATTERN = client_path_pattern("/login/fallback$")
-
-    def on_GET(self, request):
-        # TODO(kegan): This should be returning some HTML which is capable of
-        # hitting LoginRestServlet
-        return (200, {})
-
-
-class PasswordResetRestServlet(ClientV1RestServlet):
-    PATTERN = client_path_pattern("/login/reset")
-
-    @defer.inlineCallbacks
-    def on_POST(self, request):
-        reset_info = _parse_json(request)
-        try:
-            email = reset_info["email"]
-            user_id = reset_info["user_id"]
-            handler = self.handlers.login_handler
-            yield handler.reset_password(user_id, email)
-            # purposefully give no feedback to avoid people hammering different
-            # combinations.
-            defer.returnValue((200, {}))
-        except KeyError:
-            raise SynapseError(
-                400,
-                "Missing keys. Requires 'email' and 'user_id'."
-            )
-
-
 class SAML2RestServlet(ClientV1RestServlet):
     PATTERN = client_path_pattern("/login/saml2")