Projet

Général

Profil

0001-auth2_ssl-SSL-backend-import-fix.patch

Serghei Mihai, 17 mai 2015 14:55

Télécharger (1,56 ko)

Voir les différences:

Subject: [PATCH] auth2_ssl: SSL backend import fix

 src/authentic2/auth2_auth/auth2_ssl/views.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
src/authentic2/auth2_auth/auth2_ssl/views.py
46 46
    # just need to login, treated after
47 47
    if 'do_creation' in request.session and not user \
48 48
            and not request.user.is_authenticated():
49
        from backend import SSLBackend
49
        from backends import SSLBackend
50 50
        logger.info('Account creation treatment')
51 51
        if SSLBackend().create_user(ssl_info):
52 52
            user = authenticate(ssl_info=ssl_info)
......
88 88
        logger.warning('[auth2_ssl]: The certificate belongs to %s, '
89 89
            'but %s is logged with, we change the association!'
90 90
            % (user.username, request.user.username))
91
        from backend import SSLBackend
91
        from backends import SSLBackend
92 92
        cert = SSLBackend().get_certificate(ssl_info)
93 93
        cert.user = request.user
94 94
        cert.save()
......
151 151
class SslErrorView(TemplateView):
152 152
    template_name = 'error_ssl.html'
153 153
error_ssl = SslErrorView.as_view()
154

  
155
-