Reputation: 1279
How can I force FOSUserBundle to render all its pages as a part of my global template.
i tried to insert layout.html.twig from FOS UB to {% block login %} in my ::base.html.twig file which is above my default content in {% block body %}. when user enters page and logs in its ok but if he make for example password error he see only login form not the whole page.
I have also overriden layout of FOS UB to extend ::base.html.twig but how to make next steps?
Upvotes: 0
Views: 1021
Reputation: 15002
Check Override template section of the doc.
Edit
Login action redirection is done by Symfony's internal Authentication/firewall system. If you enter wrong password the Symfony automatically redirects to login action you defined in firewall. For more info you can check Security section of the book. In this case you have to modify login.html.twig
of FOSUserBundle to use your base template.
Upvotes: 0