1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 23:27:45 +01:00

Fixed condition check

This commit is contained in:
theonlynexus 2022-07-22 00:12:47 +00:00
parent 6549ce0810
commit 659d43b9ed

View File

@ -90,10 +90,9 @@ def auth_req():
g.CONFIGURATION_PATH = CONFIGURATION_PATH g.CONFIGURATION_PATH = CONFIGURATION_PATH
g.cur = g.db.cursor() g.cur = g.db.cursor()
g.conf = read_and_update_config_file() g.conf = read_and_update_config_file()
req = g.conf.get("Server", "auth_req")
session["update"] = UPDATE session["update"] = UPDATE
session["dashboard_version"] = DASHBOARD_VERSION session["dashboard_version"] = DASHBOARD_VERSION
if req == "true": if g.conf["Server"]["auth_req"]:
if ( if (
"/static/" not in request.path "/static/" not in request.path
and request.endpoint != "signin" and request.endpoint != "signin"