mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-03 01:17:56 +03:00
Replace an uds direct cookie access by "getUdsCookie"
This commit is contained in:
parent
fe6c701e44
commit
b56dbcfdfd
@ -53,7 +53,7 @@ from uds.models import User
|
|||||||
import logging
|
import logging
|
||||||
import six
|
import six
|
||||||
|
|
||||||
__updated__ = '2015-05-12'
|
__updated__ = '2015-11-06'
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
authLogger = logging.getLogger('authLog')
|
authLogger = logging.getLogger('authLog')
|
||||||
@ -293,7 +293,7 @@ def webPassword(request):
|
|||||||
@param request: DJango Request
|
@param request: DJango Request
|
||||||
@return: Unscrambled user password
|
@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):
|
def webLogout(request, exit_url=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user