middleware: always load SSL informations in the request, to allow changing your user

This commit is contained in:
Benjamin Dauvergne 2015-03-26 16:37:06 +01:00
parent be97b0e373
commit 007af52158
1 changed files with 1 additions and 2 deletions

View File

@ -5,5 +5,4 @@ class PraticAuthMiddleware(object):
attempts to find a valid user based on the client certificate info
"""
def process_request(self, request):
if request.user and not request.user.is_authenticated():
request.ssl_info = utils.SSLInfo(request)
request.ssl_info = utils.SSLInfo(request)