public function save()
    {
        $reflection = new \ReflectionObject($this);
        $properties = $reflection->getProperties(\ReflectionProperty::IS_PUBLIC);
        foreach($properties as $prop)
            $info[$prop->name] = $this->{$prop->name};
        return $this->auth->db->update($this->auth->prefix.'users', $info, ['id' => $this->id]);
    }