summaryrefslogtreecommitdiff
path: root/public/account/login/twitch.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-06 00:56:04 +0500
committerilotterytea <iltsu@alright.party>2025-05-06 01:02:22 +0500
commit7cc2534f9183bb3116b19ffca52789f1f50900f7 (patch)
treea03b240d83b03e3d925061640fdc90084c2c4b18 /public/account/login/twitch.php
parent91efe9a465df0a6647fbb0f7c5643be89cdcc7e1 (diff)
feat: account registration and login
Diffstat (limited to 'public/account/login/twitch.php')
-rw-r--r--public/account/login/twitch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/account/login/twitch.php b/public/account/login/twitch.php
index 05093cd..e3fe57a 100644
--- a/public/account/login/twitch.php
+++ b/public/account/login/twitch.php
@@ -129,7 +129,7 @@ if ($row = $stmt->fetch()) {
$_SESSION["user_id"] = $user_id;
$_SESSION["user_name"] = $user_name;
-setcookie("secret_key", $user_secret_key, time() + 86400 * 30, "/");
+setcookie("secret_key", $user_secret_key, time() + ACCOUNT_COOKIE_MAX_LIFETIME, "/");
$db = null;