Skip to main content

Comments

4 comments

  • cPanelMichael
    Hello, The following document offers a method of allowing users to log in to cPanel & WHM remotely via a script: Guide to API Authentication - Software Development Kit - cPanel Documentation Thank you.
    0
  • Joel Winterton
    Well for anyone else who has this issue here is how I hid the credentials when sending them to the server: First I assigned the credentials in PHP:

    Then I made a form with two hidden values which where the variables:

    This then sends the variables via POST to the website in the correct format and the user cannot see the credentials as PHP is server side and cannot be read by the client. The top variables can be altered to contain login details from a form.
    0
  • cPanelMichael
    I'm happy to see you were able to develop a suitable script for this purpose. Thank you for updating this thread with an example for others to view.
    0
  • edlemmers
    I have done POSTs thru PHP cURL. That way the credentials need not be with the client at all.
    0

Please sign in to leave a comment.