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

Commit

Permalink
Clarify another TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 20, 2020
1 parent 05082eb commit 4f883a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/rest/client/v2_alpha/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ async def on_POST(self, request, stagetype):
% (CLIENT_API_PREFIX, LoginType.TERMS),
}
elif stagetype == LoginType.SSO:
# TODO Display an error page here? Is the 404 below enough?
raise SynapseError(404, "SSO should not POST here.")
# The SSO fallback workflow should not post here,
raise SynapseError(404, "Fallback auth does not support POST requests.")
else:
raise SynapseError(404, "Unknown auth stage type")

Expand Down

0 comments on commit 4f883a2

Please sign in to comment.