I have this in my config
firewalls:
login_firewall:
pattern: ^/login$
anonymous: ~
secured_area:
pattern: ^/admin
form_login:
login_path: /login
check_path: /login_check
logout:
path: /logout
My problem is if i use this then i get
Unable to find the controller for path "/login_check" error
Everything works ok if use
pattern: ^/
Symfony decumentation says to put login_check behind firewall and i don’t know how can i do that
As you correctly mentioned
Symfony decumentation says to put login_check behind firewall and i don't know how can i do that– this means, that you have to define your login_check in this way:Source – Common Pitfalls section