password_reset: provide phone authn config in template ctx (#88158)
gitea/authentic/pipeline/head This commit looks good
Details
gitea/authentic/pipeline/head This commit looks good
Details
This commit is contained in:
parent
cb751d98f3
commit
0aba2eee40
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue