kamalaphroecs Posted April 4, 2016 Share Posted April 4, 2016 I am trying to change client's password using API (API Method: http://docs.whmcs.com/API:Update_Client), I am sending request with two fields clientid and password2, and it returns with no response, but if I replace field "password2" with any other field, for example firstname, it's works ... returns with success response. Please help! 0 Quote Link to comment Share on other sites More sharing options...
andnk Posted September 9, 2016 Share Posted September 9, 2016 Did you fix this bug ? If you did can you tell me how to fix it ? I have the same problem too. Thanks 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted September 9, 2016 Share Posted September 9, 2016 The password change is successful (just tried this, myself), though you are 100% correct, I'm not seeing any success / failure response, which should be seen here. This should be corrected 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted September 14, 2016 WHMCS Support Manager Share Posted September 14, 2016 Hi, I would expect the success/failure response in this situation. I've tested from here on my v6.3.1 installation: <?php require 'init.php'; //Set the call and vars $command = "updateclient"; $adminuser = "admin"; $values["clientid"] = "1"; $values["password2"] = "1f5re1fe"; //Now send it $results = localAPI($command,$values,$adminuser); //Show me what happened echo "<pre>"; print_r($results); echo "</pre>"; ?> The output I received was: Array ( [result] => success [clientid] => 1 ) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.