From 7a3fc169a51e283c9612187140f5ceaba38efd8f Mon Sep 17 00:00:00 2001 From: Rob Gill Date: Thu, 10 May 2018 09:14:57 +1000 Subject: [PATCH] Update password.php --- scripts/pi-hole/php/password.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/pi-hole/php/password.php b/scripts/pi-hole/php/password.php index 3dc58e2a..c5c872c5 100644 --- a/scripts/pi-hole/php/password.php +++ b/scripts/pi-hole/php/password.php @@ -46,7 +46,9 @@ { $auth = true; // Refresh cookie with new expiry setcookie('persistentlogin', $pwhash, time()+60*60*24*7); + } else + { // Invalid cookie $auth = false; setcookie('persistentlogin', '');