Skip to content

Commit 72bec79

Browse files
committed
Update client_change_password.php
1 parent 8c728ab commit 72bec79

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

remoting_client/examples/client_change_password.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@
1515
}
1616

1717
//* Set the function parameters.
18-
$domain = 'test.int';
18+
19+
$client_id = 1;
20+
$new_password = 'YourNewPAssword';
1921

20-
$record_record = $client->mail_domain_get_by_domain($session_id, $domain);
22+
$success = $client->client_change_password($session_id, $client_id, $new_password);
2123

22-
print_r($record_record);
24+
if ($success = 1)
25+
{
26+
echo "Password has been changed successfully";
27+
}
28+
else
29+
{
30+
echo "Error";
31+
}
32+
2333
echo "<br>";
2434

2535
if($client->logout($session_id)) {

0 commit comments

Comments
 (0)