We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d0b6e2 + 481c431 commit 57d5d5cCopy full SHA for 57d5d5c
src/Authentication/Authenticators/Session.php
@@ -927,9 +927,9 @@ protected function rememberUser(User $user): void
927
928
private function calcExpires(): Time
929
{
930
- $timestamp = Time::now()->getTimestamp() + setting('Auth.sessionConfig')['rememberLength'];
+ $rememberLength = setting('Auth.sessionConfig')['rememberLength'];
931
932
- return Time::createFromTimestamp($timestamp);
+ return Time::now()->addSeconds($rememberLength);
933
}
934
935
/**
0 commit comments