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.

Global login page

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

  1. optize

    optize Well-Known Member

    Joined:
    Apr 27, 2005
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    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:
    14,475
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. optize

    optize Well-Known Member

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

Share This Page