Jump to content

Custom Login Form


bhavicp

Recommended Posts

Hi,

We have our own page which does stuff relating to our services which we provide to clients. We used to do the below to check if the client was logged in, if not, present a simple form and push this to dologin.php?goto=manage so this was very seamless and the client never had to see our "billing" portal.  This has been broken for the last couple of WHMCS releases, but I can't figure out why. Anyone do anything similar? 

//Not logged on
     if (!$_SESSION['uid']) {

        if ($_GET['incorrect'] == true) {
         echo '<div align="center" class="errorbox">Login Details Incorrect. Please try again.</div>';
        }
 ?>
 <div>
    <div align="center" style="font-size:120%;"><span><a>Please</a> <strong><a href="whmcs/clientarea.php">login</a></strong></span><br />
        <br />

<form method="post" action="whmcs/dologin.php?goto=manage">
Email Address: <input type="text" name="username" size="50" /><br />
Password: <input type="password" name="password" size="50" autocomplete="off" /><br />
<input type="submit" value="Login" />
</form>
    </div>
</div>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated