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:
parent
cab564152d
commit
59343ff441
|
@ -149,7 +149,7 @@ class ChallengeStageView(StageView):
|
||||||
)
|
)
|
||||||
challenge_response.initial_data["response_errors"] = full_errors
|
challenge_response.initial_data["response_errors"] = full_errors
|
||||||
if not challenge_response.is_valid():
|
if not challenge_response.is_valid():
|
||||||
LOGGER.warning(
|
LOGGER.error(
|
||||||
"f(ch): invalid challenge response",
|
"f(ch): invalid challenge response",
|
||||||
binding=self.executor.current_binding,
|
binding=self.executor.current_binding,
|
||||||
errors=challenge_response.errors,
|
errors=challenge_response.errors,
|
||||||
|
|
|
@ -39,7 +39,7 @@ class EmailChallengeResponse(ChallengeResponse):
|
||||||
component = CharField(default="ak-stage-email")
|
component = CharField(default="ak-stage-email")
|
||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs):
|
||||||
raise ValidationError("")
|
raise ValidationError(detail="email-sent", code="email-sent")
|
||||||
|
|
||||||
|
|
||||||
class EmailStageView(ChallengeStageView):
|
class EmailStageView(ChallengeStageView):
|
||||||
|
|
Reference in New Issue