This commit is contained in:
Toby Zerner 2015-03-30 12:56:41 +10:30
parent 6e6f4a6fdf
commit 368a13aee1

View File

@ -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();
}