contao/test — Issue #2710: postLogin and postLogout Hooks for all User types
Author: aschempp
Created: 2011-11-29 10:10:15+00:00
State: open
Labels: Feature, framework

In my opinion, the postLogin and postLogout Hooks should be triggered inside the respective functions of the User object. This way the Hook can handle both Frontend and Backend users.
The only problem I see on this solution is that all current extensions rely on the hook argument being a FrontendUser object and not testing for instanceof. Therefore I suggest we add a new hook (and slowly replace the old one). See my attached patch.

Explanation: I'm currently working on an alternative authentication method (Shibboleth). I the current case, I need to know when a user is logged out of the backend.

[Download the attachments](http://www.contao.org/tl_files/tickets/2710.zip "Download the attachments of this ticket")
Related issues: #3545

--- _Originally created on December 1st, 2010, at 10:19pm (ID 2710)_