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 | |
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 '')
-rw-r--r-- | changelog.d/6702.misc | 1 | ||||
-rw-r--r-- | synapse/rest/client/v2_alpha/auth.py | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/changelog.d/6702.misc b/changelog.d/6702.misc new file mode 100644 index 0000000000..f7bc98409c --- /dev/null +++ b/changelog.d/6702.misc @@ -0,0 +1 @@ +Remove duplicate check for the `session` query parameter on the `/auth/xxx/fallback/web` Client-Server endpoint. \ No newline at end of file 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( |