diff --git a/scripts/pi-hole/php/password.php b/scripts/pi-hole/php/password.php index 76236f53..9718df56 100644 --- a/scripts/pi-hole/php/password.php +++ b/scripts/pi-hole/php/password.php @@ -58,7 +58,7 @@ // Login successful, redirect the user to the homepage to discard the POST request if ($_SERVER['REQUEST_METHOD'] === 'POST' && $_SERVER['QUERY_STRING'] === 'login') { // Set persistent cookie if selected - if (isset($_POST['cook'])) + if (isset($_POST['persistentlogin'])) { setcookie('persistentlogin', $pwhash, time()+60*60*24*7); }