From 72bec7955fd4fad5df93a47bfccba3331a4cec7b Mon Sep 17 00:00:00 2001 From: Baptiste Gauthier Date: Thu, 1 Feb 2018 22:53:22 +0100 Subject: [PATCH] Update client_change_password.php --- .../examples/client_change_password.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/remoting_client/examples/client_change_password.php b/remoting_client/examples/client_change_password.php index 5e20b11bc..80108f451 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'; + + $client_id = 1; + $new_password = 'YourNewPAssword'; - $record_record = $client->mail_domain_get_by_domain($session_id, $domain); + $success = $client->client_change_password($session_id, $client_id, $new_password); - print_r($record_record); + if ($success = 1) + { + echo "Password has been changed successfully"; + } + else + { + echo "Error"; + } + echo "
"; if($client->logout($session_id)) { -- GitLab