Jump to content

mattmc

Member
  • Posts

    2
  • Joined

  • Last visited

About mattmc

mattmc's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. 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";
  2. 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
×
×
  • 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