forked from shaba/openuds
Renamed config value
This commit is contained in:
parent
673d1b6813
commit
1c01c35a87
@ -384,7 +384,7 @@ def webLogin(
|
||||
# Note that encripted password is done using a value that the server does not know
|
||||
# unless a request by a valid user is done, so, if the server is compromised, the
|
||||
# password is not compromised.
|
||||
if GlobalConfig.PARANOID_SECURITY.getBool(False):
|
||||
if GlobalConfig.ENFORCE_ZERO_TRUST.getBool(False):
|
||||
password = ''
|
||||
request.session[PASS_KEY] = cryptoManager().symCrypt(
|
||||
password, cookie
|
||||
|
@ -346,8 +346,8 @@ class GlobalConfig:
|
||||
'Enable Enhanced Security', '1', type=Config.BOOLEAN_FIELD
|
||||
)
|
||||
# Paranoid security
|
||||
PARANOID_SECURITY: Config.Value = Config.section(SECURITY_SECTION).value(
|
||||
'Enable Ultimate Security', '0', type=Config.BOOLEAN_FIELD
|
||||
ENFORCE_ZERO_TRUST: Config.Value = Config.section(SECURITY_SECTION).value(
|
||||
'Enforze Zero-Trust Mode', '0', type=Config.BOOLEAN_FIELD
|
||||
)
|
||||
# Time an admi session can be idle before being "logged out"
|
||||
# ADMIN_IDLE_TIME: Config.Value = Config.section(SECURITY_SECTION).value('adminIdleTime', '14400', type=Config.NUMERIC_FIELD) # Defaults to 4 hous
|
||||
|
Loading…
x
Reference in New Issue
Block a user