mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +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;
|
||||
|
||||
if (! $session) {
|
||||
$lifetime = 60 * 60 * 24 * 14;
|
||||
|
||||
$token->lifetime = $lifetime;
|
||||
$token->lifetime = $lifetime = 2628000; // 5 years
|
||||
$token->save();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user