auth_oidc: custom login template (#39260)

This commit is contained in:
Benjamin Dauvergne 2020-01-26 20:10:15 +01:00
parent dda27fe488
commit fdc8098e5f
1 changed files with 3 additions and 1 deletions

View File

@ -42,4 +42,6 @@ class OIDCAuthenticator(object):
context['provider'] = instance
context['login_url'] = make_url('oidc-login', kwargs={'pk': instance.id},
request=request, keep_params=True)
return render(request, 'authentic2_auth_oidc/login.html', context)
template_names = ['authentic2_auth_oidc/login_%s.html' % instance.slug,
'authentic2_auth_oidc/login.html']
return render(request, template_names, context)