public function __construct($paramsOrQuery = array())
 {
     if (!$paramsOrQuery instanceof DTQueryBuilder) {
         //new tokens have a token and secret generated randomly
         $paramsOrQuery = array_merge($paramsOrQuery, array("token" => static::generateToken(), "secret" => static::generateToken()));
     }
     parent::__construct($paramsOrQuery);
 }
 public function merge(array $params, &$changes = null)
 {
     if (empty($params["password"]) || empty($params["verify"]) || $params["password"] != $params["verify"]) {
         unset($params["password"]);
         unset($params["verify"]);
         //don't set the password if it was left blank or is not verified
     }
     parent::merge($params, $changes);
 }
 public function __construct($params)
 {
     parent::__construct($params);
     $this->settings = $params;
 }