password_reset: provide phone authn config in template ctx (#88158)
This commit is contained in:
parent
033c85d2d6
commit
5cc35503e6
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue