diff --git a/framework/core/src/Http/Middleware/AuthenticateWithSession.php b/framework/core/src/Http/Middleware/AuthenticateWithSession.php index 3ef52c495..d4d5fbe06 100644 --- a/framework/core/src/Http/Middleware/AuthenticateWithSession.php +++ b/framework/core/src/Http/Middleware/AuthenticateWithSession.php @@ -26,8 +26,6 @@ class AuthenticateWithSession implements Middleware $actor = $this->getActor($session, $request); - $actor->setSession($session); - $request = RequestUtil::withActor($request, $actor); return $handler->handle($request); diff --git a/framework/core/src/User/User.php b/framework/core/src/User/User.php index 6356f743a..110f5d2e3 100644 --- a/framework/core/src/User/User.php +++ b/framework/core/src/User/User.php @@ -33,7 +33,6 @@ use Flarum\User\Event\Renamed; use Flarum\User\Exception\NotAuthenticatedException; use Flarum\User\Exception\PermissionDeniedException; use Illuminate\Contracts\Hashing\Hasher; -use Illuminate\Contracts\Session\Session; use Illuminate\Support\Arr; /** @@ -76,11 +75,6 @@ class User extends AbstractModel */ protected $permissions = null; - /** - * @var Session - */ - protected $session; - /** * An array of callables, through each of which the user's list of groups is passed * before being returned. @@ -786,22 +780,6 @@ class User extends AbstractModel return ! $this->can($ability, $arguments); } - /** - * @return Session - */ - public function getSession() - { - return $this->session; - } - - /** - * @param Session $session - */ - public function setSession(Session $session) - { - $this->session = $session; - } - /** * Set the hasher with which to hash passwords. *