public function getByWhere($where, $value)
    {
        $db = new DB();
        $result = $db->db()->select(['db_name'=>__config()->auth->db_name, 'table'=>__config()->auth->db_table, 'wheres'=>["{$where} ="."'{$value}'"]]);
        $db->db()->close();

        return $result;
    }
public function getByWhere($where, $value)
    {
        $db = new DB();
        $result = $db->db()->select(['db_name'=>__config()->auth->db_name, 'table'=>__config()->auth->db_table, 'wheres'=>["{$where} ="."'{$value}'"]]);
        $db->db()->close();

        return $result;
    }
public function getByWhere ( $ where , $ value ) { $ db = new DB ( ) ; $ result = $ db -> db ( ) -> select ( [ 'db_name' => __config ( ) -> auth -> db_name , 'table' => __config ( ) -> auth -> db_table , 'wheres' => [ "{$where} =" . "'{$value}'" ] ] ) ; $ db -> db ( ) -> close ( ) ; return $ result ; }
Get users using specific field.

@param (string) $where field of user e.g username
@param (string) $value value fo field like , usr01

@since 2.0.3

@return bool
Get users using specific field .