Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default API Pass/has authentication?

    I know how to authenticate the password/access hash in php, but I dont know how to make it throw an error if the password is wrong.. it just.. wont return results. Any idea?

  2. #2
    lvt
    lvt is offline
    Member
    Join Date
    May 2009
    Posts
    36

    Default

    If the login fails you may have something like login page with the form, submit button... instead of the XML content, you can search for some of the common HTML tags to find out what happens.

  3. #3
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Quote Originally Posted by lvt View Post
    If the login fails you may have something like login page with the form, submit button... instead of the XML content, you can search for some of the common HTML tags to find out what happens.
    Not here, it doesnt say anything...

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    Not here, it doesnt say anything...
    In my experience, a failed login throws a login form.

    Can you paste the source code of what you are getting?

Similar Threads & Tags
Similar threads

  1. Planned for 11.36 WHM - PAM / LDAP / RADIUS Authentication (Pluggable Authentication) [case 39461]
    By NathanS in forum Feature Requests for cPanel/WHM
    Replies: 30
    Last Post: 04-10-2012, 03:37 AM
  2. API2, authenticate with api key instead of root user/pass?
    By jspicher in forum cPanel Developers
    Replies: 1
    Last Post: 05-20-2011, 07:11 PM
  3. API authentication with JavaScript and XHR
    By simonpearce in forum cPanel Developers
    Replies: 3
    Last Post: 01-25-2010, 11:30 AM
  4. WHM XML API authentication
    By JamieD in forum cPanel Developers
    Replies: 2
    Last Post: 02-15-2008, 03:27 AM
  5. Replies: 0
    Last Post: 12-10-2004, 07:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube