mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 08:59:31 -05:00
Remove duplicate session check in web fallback servlet (#6702)
This commit is contained in:
parent
608bf7d741
commit
edc244eec4
1
changelog.d/6702.misc
Normal file
1
changelog.d/6702.misc
Normal file
@ -0,0 +1 @@
|
||||
Remove duplicate check for the `session` query parameter on the `/auth/xxx/fallback/web` Client-Server endpoint.
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user