Add debug log of ssl_info dict in the login view (fixes #7674)
This commit is contained in:
parent
0aafb33887
commit
f617f2f298
|
@ -1,3 +1,5 @@
|
|||
import logging
|
||||
|
||||
from django.utils.translation import gettext_noop
|
||||
from django.contrib.auth import authenticate
|
||||
from django.shortcuts import render
|
||||
|
@ -23,6 +25,9 @@ class PraticFrontend(object):
|
|||
user = None
|
||||
how = None
|
||||
autologin = False
|
||||
if hasattr(request, 'ssl_info'):
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.debug('ssl_info: %r', request.ssl_info.__dict__)
|
||||
if constants.PRATIC_AUTOLOGIN_COOKIE_NAME not in request.COOKIES:
|
||||
if hasattr(request, 'ssl_info') and request.ssl_info and \
|
||||
len(request.ssl_info.users) == 1:
|
||||
|
|
Reference in New Issue