summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-01-15 18:05:18 +0000
committerGitHub <noreply@github.com>2020-01-15 18:05:18 +0000
commitedc244eec429d587eee28e336e0baae9f9de0e0a (patch)
tree8d5cef9a2e75a266165cbaf4e15711155d0e0aee /synapse/rest/client/v2_alpha/auth.py
parentMerge pull request #6688 from matrix-org/rav/module_api_extensions (diff)
downloadsynapse-edc244eec429d587eee28e336e0baae9f9de0e0a.tar.xz
Remove duplicate session check in web fallback servlet (#6702)
Diffstat (limited to 'synapse/rest/client/v2_alpha/auth.py')
-rw-r--r--synapse/rest/client/v2_alpha/auth.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/auth.py b/synapse/rest/client/v2_alpha/auth.py
index 7a256b6ecb..50e080673b 100644
--- a/synapse/rest/client/v2_alpha/auth.py
+++ b/synapse/rest/client/v2_alpha/auth.py
@@ -206,10 +206,6 @@ class AuthRestServlet(RestServlet):
 
             return None
         elif stagetype == LoginType.TERMS:
-            if ("session" not in request.args or len(request.args["session"])) == 0:
-                raise SynapseError(400, "No session supplied")
-
-            session = request.args["session"][0]
             authdict = {"session": session}
 
             success = await self.auth_handler.add_oob_auth(