Easiest way imo is copy paste the login method from the trait and add your flash. That is if your using the auth scaffolding.
Apr 11, 2016
2
Level 18
5.2 - Flash session on postLogin
Hello all,
In 5.1 (and previous 5.* versions) to add any further logic to the postLogin method I could simply dump the existing method into my AuthController and make any changes I wanted to make.
In 5.2, the postLogin method seems to have moved around a little.
How would I flash a message depending on a success or unsuccessful authentication?
Thanks!
Level 47
Please or to participate in this conversation.