Jump to content

Validate Login API


joshmarty

Recommended Posts

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. :)

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
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