I created a new section and affected it to a node.
In my website, when I'm not connected, if I try to see this page, Symfony throws an exception :
"User does not have access to 'read' 'content'
500 Internal Server Error - UnauthorizedException"
Surprising. I think this exception should be caught by default to display a login form. This works if I set legacy_mode to true for my siteaccess. I would prefer not to do this.
How can I catch this exception to display my login form or register form ? What is the best practice in eZ 5 ?
I tried my problem in "prod mode". The exception is still displayed, but seems to be caught by twig :