mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-02 07:03:40 +00:00
fix: 有可能保存明文密码
This commit is contained in:
parent
fde92a28bd
commit
3de2992238
@ -1,7 +1,10 @@
|
||||
from werkzeug.local import Local
|
||||
|
||||
from django.utils import translation
|
||||
|
||||
|
||||
thread_local = Local()
|
||||
encrypted_field_set = {'password'}
|
||||
encrypted_field_set = {'password', 'secret'}
|
||||
|
||||
|
||||
def _find(attr):
|
||||
@ -10,4 +13,5 @@ def _find(attr):
|
||||
|
||||
def add_encrypted_field_set(label):
|
||||
if label:
|
||||
encrypted_field_set.add(str(label))
|
||||
with translation.override('en'):
|
||||
encrypted_field_set.add(str(label))
|
||||
|
Loading…
Reference in New Issue
Block a user