{"issue":{"created_at":"2011-11-29T10:10:15Z","state":"open","updated_at":"2011-11-29T10:10:20Z","user":{"gravatar_id":"9994df352157ae1b778b792744bdbf05","id":1073273,"url":"https://api.github.com/users/aschempp","avatar_url":"https://secure.gravatar.com/avatar/9994df352157ae1b778b792744bdbf05?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"aschempp"},"comments":4,"body":"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.\nThe 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.\n\nExplanation: 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.\n\n[Download the attachments](http://www.contao.org/tl_files/tickets/2710.zip \"Download the attachments of this ticket\")\nRelated issues: #3545\n\n--- _Originally created on December 1st, 2010, at 10:19pm (ID 2710)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2382508,"number":2710,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/test/labels/Feature"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/framework"}],"title":"postLogin and postLogout Hooks for all User types","closed_at":null,"html_url":"https://github.com/contao/test/issues/2710","url":"https://api.github.com/repos/contao/test/issues/2710","milestone":{"created_at":"2011-11-29T05:27:05Z","state":"open","due_on":null,"closed_issues":55,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":32,"description":"Contao 2.10.0 (minor release)","title":"2.10.0","url":"https://api.github.com/repos/contao/test/milestones/32","open_issues":1}},"action":"created","comment":{"created_at":"2011-11-29T10:10:19Z","updated_at":"2011-11-29T10:10:19Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"Well, you are right :)\n\n--- _Originally created on January 6th, 2011, at 12:48pm_","id":2926821,"url":"https://api.github.com/repos/contao/test/issues/comments/2926821"}}