wait no i lied but it works now fr this time
This commit is contained in:
parent
6a10ff81f6
commit
664020ff37
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@
|
|||
} else {
|
||||
$user = pg_fetch_array($response);
|
||||
if (password_verify($p, $user["password_hash"])) {
|
||||
$token = get_token($u, $user["password_hash"]);
|
||||
setcookie(
|
||||
"token",
|
||||
$token,
|
||||
"token", $token,
|
||||
time() + 60 * 60 * 24 * 30 * 265 // 1 year from now
|
||||
);
|
||||
header("Location: index.php");
|
||||
|
|
Loading…
Reference in a new issue