Hi,
I'm using the latest version of symfony/symfony master and since today I got
stuck with the following error:
Unable to find the controller for path "/login_check". Maybe you forgot to
add the matching route in your routing configuration?
It happend after I pulled in the latest changes. Last friday everything
worked fine.
1. INFO Matched route "_security_check" (parameters:
{"_route":"_security_check"})
2. *ERR* Unable to look for the controller as the "_controller" parameter
is missing
3. *ERR* Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Unable to find the controller for path "/login_check". Maybe you forgot to
add the matching route in your routing configuration? (uncaught exception)
4. INFO Using controller
"Symfony\Bundle\FrameworkBundle\Controller\ExceptionController::showAction"
Routing:
<route id="_security_login" pattern="/login">
<default key="_controller">User:Security:login</default>
</route>
<route id="_security_check" pattern="/login_check" />
<route id="_security_logout" pattern="/logout" />
Config.xml:
<?xml version="1.0" ?>
<srv:container xmlns="http://symfony.com/schema/dic/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:srv="http://symfony.com/schema/dic/services"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd">
<config>
<provider name="default" id="core.security.user.provider.subdomain" />
<encoders>
<encoder class="MyVendor\UserBundle\Entity\User" algorithm="sha1" />
</encoders>
<firewall name="login" pattern="^/login" security="false" />
<firewall name="application" pattern="^/">
<form-login remember-me="true" username-parameter="username"
password-parameter="password" />
<remember-me key="123123123123123123" name="appname" lifetime="172800"
remember_me_parameter="remember_me" />
<logout />
</firewall>
<role-hierarchy>
<role id="ROLE_ADMIN">ROLE_USER</role>
</role-hierarchy>
<rule path="/settings.*" role="ROLE_ADMIN" />
<rule path="/.*" role="ROLE_USER" />
</config>
</srv:container>
I've spend over 2 hours to get this working but I don't understand what goes
wrong.
I hope someone can help me... thanks!
--
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