I'm working on a project which uses FOSUser Bundle to manage my users but I'm encountering an issue.
In fact, an authenticated user still can access /login or / register routes.
Even though, my access_control looks like this:
access_control:
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin, role: ROLE_ADMIN }
What's wrong with that and how can I correct it ?