public function byId($id)
    {
        if ($user = $this->sentinel->getUserRepository()->findById($id)) {
            $this->sentinel->setUser($user);

            return true;
        }

        return false;
    }
public function byId($id)
    {
        if ($user = $this->sentinel->getUserRepository()->findById($id)) {
            $this->sentinel->setUser($user);

            return true;
        }

        return false;
    }
public function byId ( $ id ) { if ( $ user = $ this -> sentinel -> getUserRepository ( ) -> findById ( $ id ) ) { $ this -> sentinel -> setUser ( $ user ) ; return true ; } return false ; }
Authenticate a user via the id.

@param  mixed  $id

@return bool
Authenticate a user via the id .