Jump to content

Login directly from any page


Recommended Posts

Hi,

 

I'd like to ask You guys, if it is possible for a customer to login directly from any page?

 

Here's details:

 

I've copied login and password inputs from authentication.tpl to user info module (blockuserinfo.tpl). I've also copied the "login" button. So on every page i got login and password form in tehe right top corenr.

But nothing happens after I clik it (ofc. passing proper login and pass).

 

Thx for any suggestions.

Link to comment
Share on other sites

Hi,

Thx for fast reply. I've made some progres:

I'm able to login form any page but...it redirect me to authentication page. I know it is beacuse of action You mentioned above.

Here it is:

<form action="{$link->getPageLink('authentication', true)}" method="post" id="login_form" class="std">

 

So now the question is : what should I place instead of 'authentication'. Leaving it blank doesnt work. Some kind of "current page" would be solution.

 

Thx

Link to comment
Share on other sites

Yeah its fine but after it redirected You to account info page right?

I'd like to avoid this and stay at the page I'm at right now.

 

Some kind of global variable like "current_page" would be great. I'v tried to put

"{$smarty.server.REQUEST_URI}"

instead of

"{$link->getPageLink('authentication', false)}"

in form action="" but nothing happens after press "Login" button.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...