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

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

View File

@ -437,4 +437,5 @@ class LoginPasswordAuthenticator(BaseAuthenticator):
def registration(self, request, *args, **kwargs):
context = kwargs.get('context', {})
context['is_phone_authn_active'] = self.is_phone_authn_active
return render(request, 'authentic2/login_password_registration_form.html', context)