Hi,
I’m looking for any good way to run callback or hook after login/logout event, but before redirect occurs.
First, I thought I could use Omeka_Auth_Adapter_UserTable
and add the logic there inside authenticate()
method or so for login, but then I encountered plugins like LDAP-Plugin that are providing own login adapter, so my idea won’t work. Besides, I didn’t find any good trick for logout.
The only other option seems to be to override UsersController::loginAction()
and UsersController::logoutAction()
, but it won’t work with remember me cookie and any plugin routing the login/logout inside other controllers.
Is there anybody who solved similar issue or has ideas?
Thanks!