Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Global login page

Discussion in 'User Experience' started by optize, Apr 18, 2012.

  1. optize

    optize Well-Known Member

    Joined:
    Apr 27, 2005
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    166
    I have a global login page which allows customers to log into their cPanel account via my website, instead of cPanel... However, it seems to have broke lately..

    I have a username/password post go to:

    <body onLoad="setTimeout('document.forms[0].submit();',10)">
    <form action="<? print("https://$_POST[domain]:2083/login/");?>" method="post" id="login_form">
    <input type="hidden" name="user" value="<? $_POST[username]; ?>">
    <input type="hidden" name="pass" value="<? $_POST[password]; ?>">
    </form>

    It's redirecting to the correct domain, but errors out with 'username must not be blank' which makes me think it's doing the submit, but doesn't like my user post value. $_POST[username] equals their username so we are indeed passing it along.

    Am I missing a hidden field, or perhaps not posting it to the correct location?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,464
    Likes Received:
    419
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. optize

    optize Well-Known Member

    Joined:
    Apr 27, 2005
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    166
    Yeah, not related to the API. Thanks though!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice