mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Remove hash from the javascript scripts.
This commit is contained in:
+2
-1
@@ -3,8 +3,9 @@
|
||||
session_start();
|
||||
$pwhash = parse_ini_file("/etc/pihole/setupVars.conf")['WEBPASSWORD'];
|
||||
|
||||
// If the user wants to log out, we free all session variables currently registered
|
||||
if(isset($_GET["logout"]))
|
||||
unset($_SESSION["hash"]);
|
||||
session_unset();
|
||||
|
||||
// Test if password is set
|
||||
if(strlen($pwhash) > 0)
|
||||
|
||||
Reference in New Issue
Block a user