Jump to content
kamalaphroecs

Change client's password using API

Recommended Posts

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!

Share this post


Link to post
Share on other sites

Did you fix this bug ? If you did can you tell me how to fix it ? I have the same problem too.

Thanks

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
)

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated