mirror of https://github.com/jumpserver/jumpserver
fix: 修复更新资产账号不成功的问题(末尾:)
parent
9ff345747b
commit
40f8b99242
|
@ -255,6 +255,8 @@ def decrypt_password(value):
|
|||
if len(cipher) != 2:
|
||||
return value
|
||||
key_cipher, password_cipher = cipher
|
||||
if not all([key_cipher, password_cipher]):
|
||||
return value
|
||||
aes_key = rsa_decrypt_by_session_pkey(key_cipher)
|
||||
aes = get_aes_crypto(aes_key, 'ECB')
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue