stages/password: fix button without labeling

This commit is contained in:
Jens Langhammer 2020-05-17 23:55:25 +02:00
parent 7cc9ae45bc
commit 4206a8c43e
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class PasswordStage(FormView, StageView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
kwargs = super().get_context_data(**kwargs) kwargs = super().get_context_data(**kwargs)
kwargs["primary_action"] = _("Log in")
recovery_flow = Flow.objects.filter(designation=FlowDesignation.RECOVERY) recovery_flow = Flow.objects.filter(designation=FlowDesignation.RECOVERY)
if recovery_flow.exists(): if recovery_flow.exists():
kwargs["recovery_flow"] = recovery_flow.first() kwargs["recovery_flow"] = recovery_flow.first()