Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove duplicate session check in web fallback servlet (#6702)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 authored Jan 15, 2020
1 parent 608bf7d commit edc244e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/6702.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove duplicate check for the `session` query parameter on the `/auth/xxx/fallback/web` Client-Server endpoint.
4 changes: 0 additions & 4 deletions synapse/rest/client/v2_alpha/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,6 @@ async def on_POST(self, request, stagetype):

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(
Expand Down

0 comments on commit edc244e

Please sign in to comment.