Thanks for pointing this, I misunderstanded your answer the first
time.
Everything is now working ! thanks.

For information, here is my working config:
The change is to add  "form_login: true" in my firewalls.login_check
definition.

security.config:
  providers:
    main:
      users:
        florian: { password: nairolf, roles: ROLE_USER }
  firewalls:
    login: { pattern: /login, security: true, anonymous: true }
    login_check: { pattern: /login_check, security: true, anonymous:
true, form_login: true }
    profiler: { pattern: /_profiler.*, security: true, anonymous:
true }
    main:
      pattern:    .*
      form_login: { check_path: /login_check }
      logout:     { path: /logout, target: /login }
      anonymous:  true
  access_control:
    - { path: /login, role: IS_AUTHENTICATED_ANONYMOUSLY }
    - { path: /login_check, role: IS_AUTHENTICATED_ANONYMOUSLY }
    - { path: .*, role: [ ROLE_USER, IS_AUTHENTICATED_ANONYMOUSLY ] }

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to