I have looked over and over and for some reason its not working.. I
have configured based on
http://docs.symfony-reloaded.org/master/guides/security/authentication.html#form-based-authentication
.. and it does redirect to the login page. but after submitting the
form i get  the following error "Unable to find the controller.."

   1. DEBUG: Notified event "core.request" to listener "Symfony\Bundle
\FrameworkBundle\RequestListener::resolve" (notifyUntil)
   2. INFO: Matched route "_security_check" (parameters: array
( '_route' => '_security_check',))
   3. DEBUG: Notified event "core.request" to listener "Symfony
\Component\HttpKernel\Security\Firewall::handle" (notifyUntil)
   4. ERR: Unable to look for the controller as the "_controller"
parameter is missing
   5. DEBUG: Notified event "core.exception" to listener "Symfony
\Component\HttpKernel\Profiler
\ProfilerListener::handleException" (notifyUntil)
   6. DEBUG: Notified event "core.exception" to listener "Symfony
\Component\HttpKernel\Debug\ExceptionListener::handle" (notifyUntil)
   7. ERR: Symfony\Component\HttpKernel\Exception
\NotFoundHttpException: Unable to find the controller. (uncaught
exception)
   8. DEBUG: Notified event "core.request" to listener "Symfony\Bundle
\FrameworkBundle\RequestListener::resolve" (notifyUntil)
   9. DEBUG: Notified event "core.request" to listener "Symfony
\Component\HttpKernel\Security\Firewall::handle" (notifyUntil)
  10. INFO: Using controller "Symfony\Bundle\FrameworkBundle\Controller
\ExceptionController::exceptionAction"
....

Also this is the configuration i have:

security.config:
    providers:
        default:
            password_encoder: sha1
            entity: { class: SecurityBundle:User, property: username }

    firewalls:
        user:
            pattern:    /user/.*
            form-login: { provider: default }
            logout:     true
        public:
            pattern:  /.*
            security: false

Any ideas how to solve this?

-- 
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to