The configuration of the admin plugin is now in the yml file (nice and easy to read).
I have a question though: How do I set the destination page to go to after the the person logs in?
The Admin Plugin login flow seems to work like this:
click 'sign_in' -> account:sign_in -> admin:dashboard:index.
The admin.yml allows me to modify the 'log_in_url' and 'authentication_url'.
The sign_in.tpl file shows that the form POST is sent to the 'authentication_url'. That makes sense and all, but how do I then specify the user to go somewhere else OUTSIDE of the admin module? if I modify the 'authentication_url', the authentication does not complete. If I use redirectTo(array('controller' => 'main')) [from inside the dashboard_controller], it complains about not being able to find a 'Admin_MainController'.
It'd be to neat to have something in the admin.yml like 'authenticated_url' for where the user should end up AFTER they are authenticated. My users do not want to end up inside the 'admin' module unless they choose so.
Or am I approaching this the wrong way?
What would you guys suggest?
My problem was that my 'main' controller did not have the authenticate filter in it.
Once I changed my athentication_url to a controller and action that actually did have some authentication required, the problem vanished.
I hope you guys don't mind my cluttering up the forums with these questions. :-0
1 to 2 of 2