Projet

Général

Profil

0001-auth_oidc-custom-login-template-39260.patch

Benjamin Dauvergne, 26 janvier 2020 20:11

Télécharger (1,09 ko)

Voir les différences:

Subject: [PATCH] auth_oidc: custom login template (#39260)

 src/authentic2_auth_oidc/authenticators.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
src/authentic2_auth_oidc/authenticators.py
42 42
            context['provider'] = instance
43 43
            context['login_url'] = make_url('oidc-login', kwargs={'pk': instance.id},
44 44
                                            request=request, keep_params=True)
45
            return render(request, 'authentic2_auth_oidc/login.html', context)
45
            template_names = ['authentic2/login_%s.html' % instance.slug,
46
                              'authentic2_auth_oidc/login.html']
47
            return render(request, template_names, context)
46
-