logout destination
Permalink
Hi
where can I determine the page a user gets to upon logout?
I actually forgot why I wanted this to happen but I still would love to know :-)
Thanks guys! Concrete5 rocks!
where can I determine the page a user gets to upon logout?
I actually forgot why I wanted this to happen but I still would love to know :-)
Thanks guys! Concrete5 rocks!
Hey, you can do that:
1) Copy your root/concrete/controllers/login.php to root/controllers/login.php
2) Go to line 361 or search this:
3) Change the destination.
Hope it helps
1) Copy your root/concrete/controllers/login.php to root/controllers/login.php
2) Go to line 361 or search this:
public function logout() { $u = new User(); $u->logout(); $this->redirect('/'); }
3) Change the destination.
Hope it helps
hmm-- my login.php has just 3 lines :/
How to do it in 5.4.1.1 without hardcode on original login page (root/concrete/controllers/login.php)??
thx in advance
thx in advance
Currently we can define login destination only under system&settings option. If you need to add Logout destination,
1. you should create singlepage in dashboard/system/registration/ & store in New created db or as Config value.
2. you can hard code in controller/login/logout.