diff --git a/src/Forum/Actions/LogoutAction.php b/src/Forum/Actions/LogoutAction.php index a91411266..96243d32e 100644 --- a/src/Forum/Actions/LogoutAction.php +++ b/src/Forum/Actions/LogoutAction.php @@ -1,5 +1,6 @@ exists) { + $token = array_get($request->getQueryParams(), 'token'); + + AccessToken::where('user_id', $user->id)->findOrFail($token); + $user->accessTokens()->delete(); event(new UserLoggedOut($user));