From b56dbcfdfd03289f9d6adce73a4ef022c0b436b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 6 Nov 2015 03:50:22 +0100 Subject: [PATCH] Replace an uds direct cookie access by "getUdsCookie" --- server/src/uds/core/auths/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/core/auths/auth.py b/server/src/uds/core/auths/auth.py index bd22cffdd..0056e9eb2 100644 --- a/server/src/uds/core/auths/auth.py +++ b/server/src/uds/core/auths/auth.py @@ -53,7 +53,7 @@ from uds.models import User import logging import six -__updated__ = '2015-05-12' +__updated__ = '2015-11-06' logger = logging.getLogger(__name__) authLogger = logging.getLogger('authLog') @@ -293,7 +293,7 @@ def webPassword(request): @param request: DJango Request @return: Unscrambled user password ''' - return CryptoManager.manager().xor(request.session.get(PASS_KEY), request.COOKIES['uds']).decode('utf-8') # recover as original unicode string + return CryptoManager.manager().xor(request.session.get(PASS_KEY, ''), getUDSCookie(request)).decode('utf-8') # recover as original unicode string def webLogout(request, exit_url=None):