mirror of
https://github.com/pi-hole/web.git
synced 2026-04-29 05:04:30 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user