stages/email: fix missing component in response when retrying email send

closes #1791

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-14 17:52:31 +01:00
parent cab564152d
commit 59343ff441
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ class ChallengeStageView(StageView):
)
challenge_response.initial_data["response_errors"] = full_errors
if not challenge_response.is_valid():
LOGGER.warning(
LOGGER.error(
"f(ch): invalid challenge response",
binding=self.executor.current_binding,
errors=challenge_response.errors,

View File

@ -39,7 +39,7 @@ class EmailChallengeResponse(ChallengeResponse):
component = CharField(default="ak-stage-email")
def validate(self, attrs):
raise ValidationError("")
raise ValidationError(detail="email-sent", code="email-sent")
class EmailStageView(ChallengeStageView):