flows: fix error due to not validating error challenge

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-10-27 20:04:00 +02:00
parent f8fab14e1e
commit 9d0a7578ec
1 changed files with 3 additions and 3 deletions

View File

@ -253,9 +253,9 @@ class FlowExecutorView(APIView):
action=EventAction.SYSTEM_EXCEPTION,
message=exception_to_string(exc),
).from_http(self.request)
return to_stage_response(
self.request, HttpChallengeResponse(FlowErrorChallenge(self.request, exc))
)
challenge = FlowErrorChallenge(self.request, exc)
challenge.is_valid()
return to_stage_response(self.request, HttpChallengeResponse(challenge))
@extend_schema(
responses={