Remove duplicate session check in web fallback servlet (#6702)

This commit is contained in:
Andrew Morgan 2020-01-15 18:05:18 +00:00 committed by GitHub
parent 608bf7d741
commit edc244eec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

1
changelog.d/6702.misc Normal file
View File

@ -0,0 +1 @@
Remove duplicate check for the `session` query parameter on the `/auth/xxx/fallback/web` Client-Server endpoint.

View File

@ -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(