Remove hash from the javascript scripts.

This commit is contained in:
DL6ER
2016-11-20 15:34:03 +01:00
parent 02dc741209
commit cd75d7e7a3
5 changed files with 10 additions and 18 deletions
+2 -1
View File
@@ -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)