forked from shaba/openuds
Several fixes for mitration from 2.2.1
This commit is contained in:
parent
72efd559c4
commit
7b623bd986
@ -132,6 +132,7 @@ class CryptoManager:
|
||||
try:
|
||||
atfork()
|
||||
decrypted = self._oldRsa.decrypt(encoders.decode(value, 'base64'))
|
||||
return decrypted.decode()
|
||||
except Exception:
|
||||
logger.exception('Decripting: %s', value)
|
||||
# logger.error(inspect.stack())
|
||||
|
5
server/src/uds/core/util/AutoAttributes.py
Normal file
5
server/src/uds/core/util/AutoAttributes.py
Normal file
@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Allow old serialized autoattributes to load correctly (register path...)
|
||||
|
||||
from .auto_attributes import *
|
@ -86,7 +86,7 @@ def udsJs(request: 'HttpRequest') -> str:
|
||||
authenticators = [Authenticator.objects.get(small_name=auth_host)]
|
||||
except Exception:
|
||||
try:
|
||||
authenticators = [Authenticator.objects.order_by('priority')[0].small_name]
|
||||
authenticators = [Authenticator.objects.order_by('priority')[0]]
|
||||
except Exception: # There is no authenticators yet...
|
||||
authenticators = []
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user