Projet

Général

Profil

0001-auth_saml-allow-custom-template-for-each-idp-login-b.patch

Serghei Mihai (congés, retour 15/05), 21 janvier 2020 16:47

Télécharger (1,15 ko)

Voir les différences:

Subject: [PATCH] auth_saml: allow custom template for each idp login block
 (#39154)

 src/authentic2_auth_saml/authenticators.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/authentic2_auth_saml/authenticators.py
46 46
            instance = kwargs.get('instance')
47 47
            return redirect_to_login(request, login_url='mellon_login',
48 48
                                     params={'entityID': instance['ENTITY_ID']})
49
        return render(request, 'authentic2_auth_saml/login.html', context)
49
        return render(request, ['authentic2_auth_saml/login_%s.html' % instance_id,
50
                                'authentic2_auth_saml/login.html'], context)
50 51

  
51 52
    def profile(self, request, *args, **kwargs):
52 53
        context = kwargs.pop('context', {})
53
-