Renamed config value

This commit is contained in:
Adolfo Gómez García 2022-09-14 12:09:06 +02:00
parent 673d1b6813
commit 1c01c35a87
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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