misc: fix authenticator var name (#31607)

This commit is contained in:
Serghei Mihai 2019-03-20 18:09:07 +01:00
parent eba733dad4
commit 4c04187f47
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ def login(request, template_name='authentic2/login.html',
redirect_field_name: redirect_to,
'form': block['form']
})
if hasattr(frontend, 'get_context'):
if hasattr(authenticator, 'get_context'):
context.update(authenticator.get_context())
sub_template_name = authenticator.template()
block['content'] = render_to_string(