kernel/private/rest/classes/auth/native_user_authfilter.php
public function run( $credentials )
    {
        $status = self::STATUS_INVALID_USER;
        $count = eZPersistentObject::count( eZUser::definition(), array( 'contentobject_id' => (int)$credentials->id ) );
        if ( $count > 0 )
        {
            $status = self::STATUS_OK;
        }

        return $status;
    }
public function run( $credentials )
    {
        $status = self::STATUS_INVALID_USER;
        $count = eZPersistentObject::count( eZUser::definition(), array( 'contentobject_id' => (int)$credentials->id ) );
        if ( $count > 0 )
        {
            $status = self::STATUS_OK;
        }

        return $status;
    }
public function run ( $ credentials ) { $ status = self :: STATUS_INVALID_USER ; $ count = eZPersistentObject :: count ( eZUser :: definition ( ) , array ( 'contentobject_id' => ( int ) $ credentials -> id ) ) ; if ( $ count > 0 ) { $ status = self :: STATUS_OK ; } return $ status ; }
Will check if UserID provided in credentials is valid
@see ezcAuthenticationFilter::run()
Will check if UserID provided in credentials is valid