Extensions > Modules

mod_login redirection after successful authentication

(1/3) > >>

Eleanna:
Hello everybody,

I've been troubled with mod_login and I would really appreciate some help.

I want users, after successfully logging in to site, to be redirected to site's first page, instead of users central.
So, from mod_login's parameters I chose custom redirection to content:/. Nothing, authenticated users redirect to user:/.
I chose redirection to content:/category_seo. Nothing, authenticated users redirect to user:/.
I chose redirection to http://mysite.gr. Nothing, authenticated users redirect to user:/.
I then chose the other options. Still (or correctly), authenticated users redirect to user:/.

Is there any way to redirect to content:/, which is site's first page?

Btw, as far as the logout redirection, I set it also custom and worked perfectly from the very first time!

Am I missing sth?

Thanks a lot in advance!

Eleanna:
In case anyone is wondering, the behavior I'm describing is not happening, of course, if you login from the frontpage, since then you stay at frontpage!
What I'm saying is that if you are not at frontapge, but you are at users central and you login successfully, you stay at users central even if your choice at login module is "Custom Redirection" and Redirection URI is content:/.
The question is, should that be happening?

datahell:
I can't reproduce this problem. For me both login and logout re-directions work fine. I test it with frontpage (content:/) and with a custom page.

Do this:
1. Make sure you use the default Elxis login module and no other module at the same time (don't display a login module twice). If for example your template has a login module (like Chloe) use only 1 module.
2. Edit module's parameters and make sure you have the login redirection to "Custom redirection". Click save to make sure the module parameters are saved like that.
3. Make sure you have cache disabled for this module.
4. If you cant solve the problem send me a personal message with access to your site's administration to check it.

Eleanna:
It's interesting that you can't reproduce the problem, because I tried it at home also, at a localhost  installation and it did the same! I can't deny that probably I'm doing the same mistake over and over again but this is what I do:

1.I use default elxis login and, of course, I don't display twice the login module (I saw the message when I did it the first time  ;)) . My template is Flex, this is what we like...!
2. I choose "Custom redirection" and at the new line that opens below I write content:/
3. From the parameters of login module, at tab General, I have Cache: No (this is default, I didn't change it).
I save the module, I have a blue message "Item saved", I logout and I go to my site (local now).
Then I go to Users central to login, I choose external, e.g. gmail, and successfully authenticate. The page it reloads is Users Central...
I just did it again as I was writing now...

4. My site is locally under development!!! But, I will send you pm nonetheless!

Thanks a lot for the reply!

datahell:
Ooops I caught you! You go to Users Central to login, this is not the login module! This is component user login form, you cannot set redirections there. Login from the login module on the side column of the site!

Navigation

[0] Message Index

[#] Next page

Go to full version