I want to have whole site secured through login with FOSUserBundle. I tried to set security.yml like this
security:
encoders:
Symfony\\Component\\Securit
Every time the same, nobody bats an eye on the documentation. Wayne. But for your spamming you shouldn't get a answer, but this would be unfair ^^
security:
firewalls:
main:
pattern: ^/
# other settings
anonymous: true
access_control:
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, role: ROLE_USER }
for move to this URL localhost/QuickBacklog/web/app_dev.php/dashboard
you must add like this in the security.yml
firewalls:
main:
pattern: ^/
form_login:
provider: fos_userbundle
default_target_path: /dashboard/
logout:
........
invalidate_session: false
anonymous: ~
In the routing file
applicationlogin_success:
pattern: /dashboard/
defaults: { _controller: SampleBundle:Default:FrontPage }
BY USING default_target_path : ROUTING_PATTERN
u will redirect it...