mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Remember users forever (5 years) rather than 2 weeks
This commit is contained in:
parent
edf693bde1
commit
62c56a71d4
|
@ -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…
Reference in New Issue
Block a user