登录symfony2时出错


Getting error while logging in symfony2

昨天一切正常,但现在我得到了这个

Unable to find the controller for path "/login_check". Maybe you forgot to add the matching route in your routing configuration?

我有这个代码

secured_area:
            pattern:    ^/admin
            anonymous: ~
            form_login:
                login_path:  /login
                check_path:  /login_check

这个路由

xxxxxxxx:
    resource: "@myBundle/Controller"
    type:     annotation

xxxxxxxx:
    resource: "@myBundle/Controller"
    type:     annotation
    prefix:   /secured

我需要做更多的设置

检查您的路由中是否有

_security_check:
    pattern: /login_check

同时检查该路线是否未被任何其他覆盖

编辑

您必须将check_path放在防火墙后面。平均值:

check_path:  /admin/login_check