diff --git a/remoting_client/examples/client_change_password.php b/remoting_client/examples/client_change_password.php index 5e20b11bc49773daa09ea29d8a27197be0e1f414..009d3ec1d9499bab328df479ecd82b69be4c707f 100644 --- a/remoting_client/examples/client_change_password.php +++ b/remoting_client/examples/client_change_password.php @@ -15,11 +15,21 @@ try { } //* Set the function parameters. - $domain = 'test.int'; - $record_record = $client->mail_domain_get_by_domain($session_id, $domain); + $client_id = 1; + $new_password = 'YourNewPassword'; + + $success = $client->client_change_password($session_id, $client_id, $new_password); + + if ($success = 1) + { + echo "Password has been changed successfully"; + } + else + { + echo "Error"; + } - print_r($record_record); echo "<br>"; if($client->logout($session_id)) {