Update password.php

This commit is contained in:
Rob Gill
2018-05-08 19:05:19 +10:00
committed by GitHub
parent 84b6f6b291
commit a8bf42687c

View File

@@ -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);
}