Skip to content

Commit 5bbdd6b

Browse files
author
Till Brehm
committed
Merge branch 'mr-723-stable' into 'stable-3.1'
Update client_change_password.php See merge request ispconfig/ispconfig3!1105
2 parents 5bf6657 + 2fccbbf commit 5bbdd6b

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)