password_reset: provide phone authn config in template ctx (#88158)
gitea/authentic/pipeline/head This commit looks good Details

This commit is contained in:
Paul Marillonnet 2024-03-14 14:26:45 +01:00
parent cb751d98f3
commit 0aba2eee40
1 changed files with 1 additions and 0 deletions

View File

@ -1144,6 +1144,7 @@ class PasswordResetView(FormView):
if app_settings.A2_USER_CAN_RESET_PASSWORD is False:
raise Http404('Password reset is not allowed.')
ctx['title'] = _('Password reset')
ctx['is_phone_authn_active'] = self.authenticator.is_phone_authn_active
return ctx
def form_valid(self, form):