joshmarty Posted November 3, 2010 Share Posted November 3, 2010 Hi guys! I am wondering if you could help me with my problem to auto login users to WHMCS. I have a system wherein I want to login my users to WHMCS whenever they want to pay my subscriptions. I see that the ValidateLogin API function works well with this but I don't know what to do with the passwordhash that this function returns. I can already get the passwordhash but I can't see how to use this to auto-log my users to WHMCS. Any help would be greatly appreciated.. 0 Quote Link to comment Share on other sites More sharing options...
jose.felipe Posted February 22, 2011 Share Posted February 22, 2011 Hi guys! I am wondering if you could help me with my problem to auto login users to WHMCS. I have a system wherein I want to login my users to WHMCS whenever they want to pay my subscriptions. I see that the ValidateLogin API function works well with this but I don't know what to do with the passwordhash that this function returns. I can already get the passwordhash but I can't see how to use this to auto-log my users to WHMCS. Any help would be greatly appreciated.. $postfields = array(); $postfields["action"] = "getclientpassword"; $postfields["userid"] = $uid; //assume you called validatelogin and got the user id $response = whmcs_request($postfields); // make a request to the API $upw = $response['password']; $_SESSION['uid'] = $uid; $_SESSION['upw'] = md5( $uid . $upw . $_SERVER['REMOTE_ADDR']); 0 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.