mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 00:44:48 +00:00
fix: 修改 EncryptMixin get_prep_value 和 默认关闭 XPACK
This commit is contained in:
@@ -143,6 +143,7 @@ class EncryptMixin:
|
||||
value = sp.get_prep_value(value)
|
||||
value = force_text(value)
|
||||
# 替换新的加密方式
|
||||
return crypto.encrypt(value)
|
||||
|
||||
|
||||
class EncryptTextField(EncryptMixin, models.TextField):
|
||||
|
Reference in New Issue
Block a user