diff --git a/scripts/pi-hole/php/password.php b/scripts/pi-hole/php/password.php index d62c1aa9..ed95ca31 100644 --- a/scripts/pi-hole/php/password.php +++ b/scripts/pi-hole/php/password.php @@ -42,7 +42,7 @@ // Check for and authorize from persistent cookie if (isset($_COOKIE["persistentlogin"])) { - if ($pwhash = $_COOKIE["persistentlogin"]) + if ($pwhash === $_COOKIE["persistentlogin"]) { $auth = true; // Refresh cookie with new expiry