1

After struggling with symfony and FOSUserBundle i have decided to ask your help

I have followed the tutorial of FOSUserBundle and it all works fine ,but now I have to use FOSUserBundle differently ,

The login page of FOSUserBundle Should be the first page of my web application it means the index.html.twig (In my case it's a web application the user (admin access to admin space and user to user space ) should authenticate before acceding to my application.

So how can I configurate my project to begin with login.html.twig of the FOSUserBundle I have followed the officiel documentation : http://symfony.com/doc/master/bundles/FOSUserBundle/index.html

I can't see it !!

1 Answers1

2

Add this line to your file security.yml :

access_control:
    - { path: ^/, role: ROLE_USER }
issamwg
  • 406
  • 4
  • 8