mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Fixed condition check
This commit is contained in:
parent
6549ce0810
commit
659d43b9ed
@ -90,10 +90,9 @@ def auth_req():
|
||||
g.CONFIGURATION_PATH = CONFIGURATION_PATH
|
||||
g.cur = g.db.cursor()
|
||||
g.conf = read_and_update_config_file()
|
||||
req = g.conf.get("Server", "auth_req")
|
||||
session["update"] = UPDATE
|
||||
session["dashboard_version"] = DASHBOARD_VERSION
|
||||
if req == "true":
|
||||
if g.conf["Server"]["auth_req"]:
|
||||
if (
|
||||
"/static/" not in request.path
|
||||
and request.endpoint != "signin"
|
||||
|
Loading…
Reference in New Issue
Block a user