It's a common problem, there are lots of hints but i'm currently unable to solve it. Maybe someone can help me.
My security.yml:
firewalls:
login:
pattern: ^/login$
anonymous: ~
secured_area:
pattern: ^/
form_login:
login_path: /login
check_path: /login_check
logout:
path: /logout
target: /
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: ROLE_USER }
And these are my configured routes (router:debug output):
home ANY ANY ANY /
login ANY ANY ANY /login
logout ANY ANY ANY /logout
login_check ANY ANY ANY /login_check
I would like to have everything in a secured area. But I still getting the error mentioned above: Unable to find the controller for path "/login_check". What wrong with my configuration?