mirror of https://github.com/jumpserver/jumpserver
fix: 修复系统用户解密
parent
8aa21db52b
commit
4bceac8e83
|
@ -259,7 +259,7 @@ def decrypt_password(value):
|
||||||
aes = get_aes_crypto(aes_key, 'ECB')
|
aes = get_aes_crypto(aes_key, 'ECB')
|
||||||
try:
|
try:
|
||||||
password = aes.decrypt(password_cipher)
|
password = aes.decrypt(password_cipher)
|
||||||
except UnicodeDecodeError as e:
|
except Exception as e:
|
||||||
logging.error("Decript password error: {}, {}".format(password_cipher, e))
|
logging.error("Decript password error: {}, {}".format(password_cipher, e))
|
||||||
return value
|
return value
|
||||||
return password
|
return password
|
||||||
|
|
Loading…
Reference in New Issue