mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 23:20:37 +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):
|
||||
|
@@ -6,8 +6,8 @@ from .. import const
|
||||
from .base import INSTALLED_APPS, TEMPLATES
|
||||
|
||||
XPACK_DIR = os.path.join(const.BASE_DIR, 'xpack')
|
||||
# XPACK_ENABLED = False
|
||||
XPACK_ENABLED = os.path.isdir(XPACK_DIR)
|
||||
XPACK_ENABLED = False
|
||||
# XPACK_ENABLED = os.path.isdir(XPACK_DIR)
|
||||
XPACK_TEMPLATES_DIR = []
|
||||
XPACK_CONTEXT_PROCESSOR = []
|
||||
|
||||
|
Reference in New Issue
Block a user