Move factor base template to form_with_user

This commit is contained in:
Jens Langhammer
2019-02-23 20:41:43 +01:00
parent 5fa8711bfa
commit 66c0fc9d9a
4 changed files with 9 additions and 5 deletions

View File

@ -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)