1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Remember users forever (5 years) rather than 2 weeks

This commit is contained in:
Toby Zerner
2017-07-08 22:29:26 +09:30
parent ade2166310
commit 93140b8fa4

View File

@@ -37,9 +37,7 @@ class Rememberer
$lifetime = null; $lifetime = null;
if (! $session) { if (! $session) {
$lifetime = 60 * 60 * 24 * 14; $token->lifetime = $lifetime = 2628000; // 5 years
$token->lifetime = $lifetime;
$token->save(); $token->save();
} }