mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-16 15:38:21 +00:00
14 lines
252 B
Python
14 lines
252 B
Python
from werkzeug.local import Local
|
|
|
|
thread_local = Local()
|
|
encrypted_field_set = {'password'}
|
|
|
|
|
|
def _find(attr):
|
|
return getattr(thread_local, attr, None)
|
|
|
|
|
|
def add_encrypted_field_set(label):
|
|
if label:
|
|
encrypted_field_set.add(str(label))
|