Hi all,

When a user logs in the login script (userhandler.php act_login)
checks the login session to see if an original admin page has been
specified. If it has then it redirects the user back to that page.

I want to redirect users to a non-admin page at this point.

As far as I can tell there is no way of doing this, you have to wait
until the login script redirects to /admin and then redirect again
from there. This is doable, but not ideal.

Firstly, does anyone know of a way to hook into this process before
the redirect occurs?

Failing that, does anyone see an issue with adding a hook in
immediately before the redirect, for example: Plugins::act(
'login_redirect_before', $login_session ); ? This seems to be the
simplest solution.

Andrew

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to