0

I'm new to Symfony2 and I'm trying to create a basic login system. This is my security.yml page:

firewalls:
    dev:
        pattern:  ^/(_(profiler|wdt)|css|images|js)/
        security: false

    login:
        pattern:  ^/demo/secured/login$
        security: false


    secured_area:
        pattern:  /^
        form_login: 
            login_path: login
            check_path: login_check
        logout:
            path:   /logout
            target: /

I am getting the login page but when I submit the form i get a exception that

"Unable to find the controller for path "/login_check". Maybe you forgot to add the matching route in your routing configuration?"

Swass
  • 310
  • 2
  • 4
  • 11
  • do you have a route named `login_check` defined? Please read [**my answer here**](http://stackoverflow.com/questions/17406446/how-does-the-login-check-path-route-work-without-default-controller-action/17406584#17406584) to understand how the `check_path` works. – Nicolai Fröhlich Nov 25 '13 at 11:00

1 Answers1

0

Follow the instructions closely on the symfony docs for Using a Login Form. If you follow these instructions, you shouldn't have any issues with your login_check.

Sehael
  • 3,678
  • 21
  • 35