Jump to content

validatelogin api


mattmc

Recommended Posts

I'm trying to build a custom validatelogin url to validate a user. I've taken the curl example from the 'API Example' on the documentation page changed the "action" postfield to contain "validatelogin" along with other required settings. The only response I can get is "Authentication Failed". I've tried all forms of usernames/email addresses and I've even tried encrypting the password (md5) and still nothing. Does anybody have any insight?

 

 

$url = http://www.mydomain.com/whmcs/includes/api.php;

$postfields["action"] = "validatelogin";

$postfields["email"] = "testusername";

$postfields["password2"] = "testpassword";

 

$results["result"] == error and the message is "Authentication Failed"

 

 

yes...I've created a valid account as well

Link to comment
Share on other sites

Sorry, I forgot to include the admin username and md5(admin password) in the postfields

 

 

It should be like this

 

$postfields["action"] = "validatelogin";

$postfields["username"] = "admin_username";

$postfields["password"] = md5("admin_password");

$postfields["email"] = "email_address_of_user_to_authenticate";

$postifleds["password2"] = "password_the_user_supplied";

Link to comment
Share on other sites

  • 5 weeks later...
  • 11 years later...

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