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

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

View File

@ -1138,6 +1138,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):