Jump to content

Generating a valid CSRF Token


lukinhasb

Recommended Posts

Hello,

 

I'm trying to do a register form from my HTML website to WHMCS.

 

I've managed to do everything, except for the CSRF token that has to go with the form.

 

If I disable CSRF Token in Settings -> Security the form works.

 

How can I do that please?

 

Thanks

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

You won't be able to duplicate the form in this way with the security token on (kinda the point of a security token). However you will be able to achieve this with the API:

 

http://docs.whmcs.com/API:Add_Client'>http://docs.whmcs.com/API:Add_Client

http://docs.whmcs.com/API:Add_Order'>http://docs.whmcs.com/API:Add_Order

 

More information on our API: http://docs.whmcs.com/API

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