login registration: provide phone authn config in template ctx (#88144) #276

Merged
pmarillonnet merged 1 commits from wip/88144-phone-authn-registration-config-info-in-template-context into main 2024-04-18 17:05:18 +02:00
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)