mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Oops
This commit is contained in:
parent
6e6f4a6fdf
commit
368a13aee1
|
@ -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