mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 17:43:11 +08:00
Remember users forever (5 years) rather than 2 weeks
This commit is contained in:
parent
ade2166310
commit
93140b8fa4
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user