The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

API Pass/has authentication?

Discussion in 'cPanel Developers' started by jhyland87, Jun 27, 2009.

  1. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    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. lvt

    lvt Well-Known Member

    Joined:
    May 23, 2009
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Reseller Owner
    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. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Not here, it doesnt say anything...
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In my experience, a failed login throws a login form.

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

Share This Page