mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 10:50:23 +01:00
Update password.php
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user