1

I keep getting this error: You must configure the check path to be handled by the firewall using form_login in your security firewall configuration.

I tried this Symfony2.5 + FOSUserBundle check path apparently not found

I tried ths You must configure the check path to be handled by the firewall using form_login in your security firewall configuration

firewalls:
    main:
        pattern: ^/
        form_login:
            login_path: fos_user_security_login
            check_path: /login_check
            provider: fos_userbundle
            csrf_provider: form.csrf_provider
            default_target_path: /
        logout:       true

in routing

fos_user:
    resource: "@FOSUserBundle/Resources/config/routing/all.xml"

I'm at lost what to do at all.

config.yml

fos_user:
    db_driver: orm 
    firewall_name: main
    user_class: AppBundle\Entity\User
Community
  • 1
  • 1
hammies
  • 1,344
  • 2
  • 22
  • 46

1 Answers1

0

You can delete the check path and the login path from your firewall it's not important !

Edit : Make your routing.yml in Acme\MyBundle\Resources\config with the code bellow :

    fos_user_register:
    resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
    prefix: /register  
fos_user_security:
    resource: "@FOSUserBundle/Resources/config/routing/security.xml"
    prefix: /
fos_user_profile:
    resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
    prefix: /profile

fos_user_resetting:
    resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
    prefix: /resetting

fos_user_change_password:
    resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
    prefix: /profile

And add an import to your app/config/routing.yml :

    _user_bundle:
  resource: "@AcmeMyBundle/Resources/config/routing.yml"
Dmk
  • 88
  • 1
  • 11