joshmarty Posted November 2, 2010 Share Posted November 2, 2010 Hi guys! I am wondering if you could guide me on the proper usage of the Validate Login API. I wan to auto-log users to WHMCS from my system and I see that this function can help me do that. Yet, I am at a loss on how to use this function properly. Can someone help me with this? Any help would be greatly appreciated. 0 Quote Link to comment Share on other sites More sharing options...
weelinx Posted December 4, 2010 Share Posted December 4, 2010 API:Validate Login - This command can be used to validate an email address and password against a registered user in WHMCS. If a match is found, it will return successful with the userid and password hash which can then be used to set the $_SESSION['uid'] and $_SESSION['upw'] values respectively in the users session to auto log the user in to WHMCS. OK, I got the idea, nice! Exactly what I need. I put this API in my main website's login function and I guess "a match is found", but I can't figure out what, where and how the values of $_SESSION['uid'] and $_SESSION['upw'] should be set. Any help will be greatly appreciated. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 4, 2010 Share Posted December 4, 2010 This may be helpful: http://www.ndchost.com/wiki/software/whmcs/session-upw 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.