Jump to content

login box redirects to another login page


kanjigirl

Recommended Posts

I'm using the bit of integration code from WHMCS to run the login box on my home page:

 

<form method="post" action="http://nocohosting.com/whmcs/dologin.php?goto=clientarea">
<p class="login">Email Address:</p> 
<input type="text" name="username" size="23" maxlength="40">
<p class="login">Password:</p> 
<input type="password" name="password" size="23" maxlength="23">
<input type="submit" value="Login" class="button-login">
</form>

 

However when a client logs in here, they're taken to the other login page in the client area.

 

How do I take them into the client area without forcing them to login twice?

Link to comment
Share on other sites

I'm using the bit of integration code from WHMCS to run the login box on my home page:

 

<form method="post" action="http://nocohosting.com/whmcs/dologin.php?goto=clientarea">
<p class="login">Email Address:</p> 
<input type="text" name="username" size="23" maxlength="40">
<p class="login">Password:</p> 
<input type="password" name="password" size="23" maxlength="23">
<input type="submit" value="Login" class="button-login">
</form>

 

However when a client logs in here, they're taken to the other login page in the client area.

 

How do I take them into the client area without forcing them to login twice?

I have also just had a similar issue and fixed it, but to keep it simple what is your https url?

Link to comment
Share on other sites

dologin.php?goto=clientarea is the full login action on the second page (the internal login page) and the https URL of this page is 74.52.179.82/~nocohost/whmcs/ - does that help?

 

I tried changing http to https on the home page login, that didn't work, just gave me a 404 error.

Link to comment
Share on other sites

dologin.php?goto=clientarea is the full login action on the second page (the internal login page) and the https URL of this page is 74.52.179.82/~nocohost/whmcs/ - does that help?

 

I tried changing http to https on the home page login, that didn't work, just gave me a 404 error.

 

I'm sorry but I don't really understand what you mean with your last post but try this.

 

The Form tag and URL must be the same as your standard entry to WHMCS.

For example:

<form method="post" action="http://secure.mydomain.com.au/accounting/dologin.php?goto=clientarea" target="_blank">

 

My normal url would be http://www.mydomain.com.au and my secure url is

https://secure.mydomain.com.au

But this program does not handle url changes like most others, so the url has to remain the same.

So in my case all references to my WHMCS must remain in the format of secure.mydomain.com.au and only changing http to https for the secure pages.

 

From what I'm understanding of your post your changing your url to an ip address. This will not work unless that is you base (home) url in the first place.

Hope this makes sense and helps

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