function authByInput($user_id, $password) { // set credentials $this->credentials['user_id'] = owa_sanitize::cleanUserId($user_id); // must encrypt password to see if it matches whats in the db $this->credentials['password'] = $this->encryptPassword($password); //owa_coreAPI::debug(print_r($this->credentials, true)); $ret = $this->isUser(); if ($ret === true) { $this->saveCredentials(); } return $ret; }