/** * Set the password for the user. * * @param string $password The plaintext password to set. * @return bool True on success, false on failure. */ public function update_password($password) { if ($this->manual) { return false; } $this->user->password = self::encrypt_password($password); $webex = new webex(); $xml = xml_gen::update_user_password($this); $response = $webex->get_response($xml); if ($response !== false) { $this->save_to_db(); return true; } else { return false; } }