diff --git a/scripts/pi-hole/php/password.php b/scripts/pi-hole/php/password.php index 3ebf9f62..b3da977a 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 (hash_equals($pwhash, $_COOKIE["persistentlogin"])) { $auth = true; // Refresh cookie with new expiry