Skip to content

Commit b09971f

Browse files
author
thom
committed
Update client_change_password.php
1 parent 803c134 commit b09971f

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';
1918

20-
$record_record = $client->mail_domain_get_by_domain($session_id, $domain);
19+
$client_id = 1;
20+
$new_password = 'YourNewPassword';
21+
22+
$success = $client->client_change_password($session_id, $client_id, $new_password);
23+
24+
if ($success = 1)
25+
{
26+
echo "Password has been changed successfully";
27+
}
28+
else
29+
{
30+
echo "Error";
31+
}
2132

22-
print_r($record_record);
2333
echo "<br>";
2434

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

0 commit comments

Comments
 (0)