mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Oops
This commit is contained in:
parent
3b4beaa6ca
commit
8e0a27de49
|
@ -18,7 +18,7 @@ class LoginWithCookie
|
|||
{
|
||||
if (($token = $request->cookie('flarum_remember')) &&
|
||||
($accessToken = AccessToken::where('id', $token)->first())) {
|
||||
$this->actor->setUser($accessToken->user);
|
||||
$this->actor->setUser($user = $accessToken->user);
|
||||
|
||||
$user->updateLastSeen()->save();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user