Do not show Logout button when either no password is set or this is a local browser and localAPIauth is set to false

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-05-28 08:22:36 +02:00
parent 0f0f8c9deb
commit ab2d15bf91
3 changed files with 37 additions and 34 deletions

View File

@@ -10,6 +10,7 @@
<?
starttime = mg.time(true)
hostname = pihole.hostname()
webhome = pihole.webhome()
-- Get name of script by matching whatever is after the last "/" in the URI
scriptname = mg.request_info.request_uri:match(pihole.webhome().."(.*)$")
-- Fall back to "index.lp" if no match is found (e.g. when accessing the root)