public function stateless($username, $password)
    {
        $user = $this->sentinel->stateless(
            [
                'email'    => $username,
                'password' => $password,
            ]
        );

        if ( ! ($user instanceof CartalystUserInterface)) {
            return false;
        }

        // This is still a login, and while we don't want persistence, we do want it to be recorded
        $this->sentinel->getUserRepository()->recordLogin($user);

        event( new CmsUserLoggedIn($user, true) );
        return true;
    }
public function stateless($username, $password)
    {
        $user = $this->sentinel->stateless(
            [
                'email'    => $username,
                'password' => $password,
            ]
        );

        if ( ! ($user instanceof CartalystUserInterface)) {
            return false;
        }

        // This is still a login, and while we don't want persistence, we do want it to be recorded
        $this->sentinel->getUserRepository()->recordLogin($user);

        event( new CmsUserLoggedIn($user, true) );
        return true;
    }
public function stateless ( $ username , $ password ) { $ user = $ this -> sentinel -> stateless ( [ 'email' => $ username , 'password' => $ password , ] ) ; if ( ! ( $ user instanceof CartalystUserInterface ) ) { return false ; } // This is still a login, and while we don't want persistence, we do want it to be recorded $ this -> sentinel -> getUserRepository ( ) -> recordLogin ( $ user ) ; event ( new CmsUserLoggedIn ( $ user , true ) ) ; return true ; }
Performs stateless login.

@param string $username
@param string $password
@return bool
Performs stateless login .