diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2020-01-15 18:05:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 18:05:18 +0000 |
commit | edc244eec429d587eee28e336e0baae9f9de0e0a (patch) | |
tree | 8d5cef9a2e75a266165cbaf4e15711155d0e0aee /synapse | |
parent | Merge pull request #6688 from matrix-org/rav/module_api_extensions (diff) | |
download | synapse-edc244eec429d587eee28e336e0baae9f9de0e0a.tar.xz |
Remove duplicate session check in web fallback servlet (#6702)
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/client/v2_alpha/auth.py | 4 |
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( |