While trying to use the client_change_password remoting function, I noticed it was not taking the parameters I was giving it and it was not changing the user's password.
These modifications are required for the function to actually work, and hopefully we can get this fixed in the next release.
/usr/local/ispconfig/interface/lib/classes/remoting.inc.php
Line 2524 Reads:
Code:
$sql = "UPDATE client SET password = md5('".($new_password)."') WHERE client_id = ".$client_id;
Should read:
Code:
$sql = "UPDATE client SET password = md5('".$new_password."') WHERE client_id = ".$client_id;
Line 2527 Reads:
Code:
$sql = "UPDATE sys_user SET passwort = md5('".($new_password)."') WHERE client_id = ".$client_id;
Should read:
Code:
$sql = "UPDATE sys_user SET passwort = md5('".$new_password."') WHERE client_id = ".$client_id;
If you're banging your head against the wall trying to get a user's password changed using the remote framework, make those edits and it will work. The parenthesis in the query are what's throwing it off.
Recent comments
1 day 4 hours ago
1 day 13 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
1 day 21 hours ago
1 day 23 hours ago
2 days 15 hours ago
2 days 15 hours ago