stages/email: add form for sending email to prevent spam

stages/email: make token validity configurable
This commit is contained in:
Jens Langhammer
2020-05-10 20:50:27 +02:00
parent 206cf4967d
commit d4f149bc02
8 changed files with 65 additions and 30 deletions

View File

@ -26,7 +26,7 @@ class AuthenticationStage(TemplateView):
def get_context_data(self, **kwargs: Dict[str, Any]) -> Dict[str, Any]:
kwargs["config"] = CONFIG.y("passbook")
kwargs["title"] = _("Log in to your account")
kwargs["title"] = self.executor.flow.name
kwargs["primary_action"] = _("Log in")
if PLAN_CONTEXT_PENDING_USER in self.executor.plan.context:
kwargs["user"] = self.executor.plan.context[PLAN_CONTEXT_PENDING_USER]