mirror of https://github.com/jumpserver/jumpserver
fix: 修改 EncryptMixin get_prep_value 和 默认关闭 XPACK
parent
a7c82f94cc
commit
05e2f8aaf6
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue