I have been following this tutorial from the Symfony Book to manage my users.
Now, I would like to set a flash message after the login has succeeded OR if somebody attempts to access a forbidden area.
What I understand is that authentication and authorization are not managed inside controllers. As a consequence, I do not know where to put my code to display a simple "Sorry, you are not connected" message.