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
Post a Comment