php - Secure area in Symfony2 -


i have question security features of symfony2. want protect special area of application under /my prefix.

my configuration looks follows:

security.config:     providers:         my:             entity: { class: myuserbundle:user, property: username }      firewalls:         public:             pattern: /my/login.*             security: false          my:             pattern: /my.*             form-login:                 check_path: /my/login_check                 login_path: /my/login             logout: true      access_control:         - { path: /my/login.*, roles: is_authenticated_anonymously } 

when try access login area, works fine, submitting form leads error page, because there no registered controller _security_check route, described in guide:

_security_login:     pattern: /my/login     defaults: { _controller: myuserbundle:auth:login }  _security_check:     pattern: /my/login_check 

i think securitybundle hacks process no controller needed. configuration of symfony2 allways complex.

i think missed something, hope can help.
in advance!

i solve problem of symfony users mailing group.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -