Move factor base template to form_with_user
This commit is contained in:
@ -17,7 +17,7 @@ class AuthenticationFactor(TemplateView):
|
||||
authenticator = None
|
||||
pending_user = None
|
||||
request = None
|
||||
template_name = 'login/factors/base.html'
|
||||
template_name = 'login/form_with_user.html'
|
||||
|
||||
def __init__(self, authenticator):
|
||||
self.authenticator = authenticator
|
||||
@ -27,5 +27,5 @@ class AuthenticationFactor(TemplateView):
|
||||
kwargs['is_login'] = True
|
||||
kwargs['title'] = _('Log in to your account')
|
||||
kwargs['primary_action'] = _('Log in')
|
||||
kwargs['pending_user'] = self.pending_user
|
||||
kwargs['user'] = self.pending_user
|
||||
return super().get_context_data(**kwargs)
|
||||
|
||||
Reference in New Issue
Block a user