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
)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

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