wait no i lied but it works now fr this time

This commit is contained in:
trinkey 2025-03-22 08:42:53 -04:00
parent 6a10ff81f6
commit 664020ff37

View file

@ -30,9 +30,9 @@
} else { } else {
$user = pg_fetch_array($response); $user = pg_fetch_array($response);
if (password_verify($p, $user["password_hash"])) { if (password_verify($p, $user["password_hash"])) {
$token = get_token($u, $user["password_hash"]);
setcookie( setcookie(
"token", "token", $token,
$token,
time() + 60 * 60 * 24 * 30 * 265 // 1 year from now time() + 60 * 60 * 24 * 30 * 265 // 1 year from now
); );
header("Location: index.php"); header("Location: index.php");