password_reset: provide phone authn config in template ctx (#88158) #278

Merged
pmarillonnet merged 1 commits from wip/88158-phone-authn-lost-password-config-in-template-ctx into main 2024-04-18 17:08:48 +02:00
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):