Closed fiedsch closed 8 years ago
Good find! I think rather than checking for TL_MODE == 'FE'
you should check for $user instanceof \FrontendUser
:) We should discourage using constants wherever we can :)
Thanks for the comment, Yanick. I updated the PR.
I came across the problem by https://community.contao.org/de/showthread.php?60122-postLogin-BackendUser-given&p=391129
:+1:
Thanks for carefull reading. Hope to create a PR without issues of that kind sometime soon. The PR is updated.
No problem at all! That's the power of open source, multiple people can contribute for the best result :-)
both hooks apply to backend and front end users as they are triggered in the
User
class that bothFrontendUser
andBackendUser
are derived from.