title: Why is my symfony2 fosUserBundle not able to find the check_path?
body: <p>I'm trying to implement fosUserBundle in my symfony project.</p>
  
  <p>I've successfully installed an configured the bundle.</p>
  
  <p>But now, when I log in, I'm having this error message: </p>
  
  <blockquote>
    <p>You must configure the check path to be handled by the firewall using form_login in your security firewall configuration.</p>
  </blockquote>
  
  <p>Why is that happening ? where should i look for that pb ?</p>
  
  <p>Thank you, you'll find below the security file:</p>
  
  <pre><code>security:
      encoders:
          "FOS\UserBundle\Model\UserInterface": sha512
  
      role_hierarchy:
          ROLE_ADMIN:       ROLE_USER
          ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  
      providers:
          fos_userbundle:
              id: fos_user.user_manager
          in_memory:
              users:
                  user:  { password: userpass, roles: [ 'ROLE_USER' ] }
                  admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
  
      firewalls:
          dev:
              pattern:  ^/(_(profiler|wdt)|css|images|js)/
              security: false
  
          # Firewall pour les pages de connexion, inscription, et récupération de mot de passe
          login:
              pattern:   ^/(login$|register|resetting)  # Les adresses de ces pages sont login, register et resetting
              anonymous: true                           # On autorise bien évidemment les anonymes sur ces pages !
  
          admin:
              switch_user:        true
              context:            user
              pattern:            /admin(.*)
              form_login:
                  provider:       fos_userbundle
                  login_path:     /login
                  use_forward:    false
                  check_path:     /admin/login_check
                  failure_path:   null
                  use_referer:    true
              logout:
                  path:           /admin/logout
                  target:         /login_path
      access_control:
          - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
          - { path: ^/admin/, role: ROLE_ADMIN }
  </code></pre>
  
  <p>For the rest of the files it is very similar to <a href="https://github.com/FriendsOfSymfony/FOSUserBundle/blob/1.2.0/Resources/doc/index.md" rel="nofollow">the official documentation</a></p>