Hello,
I've copied the AcmeDemo Secured configuration to my Bundle. But when
I submit the login form, le login_check action give me this error :
The controller must return a response (null given). Did you forget to
add a return statement somewhere in your controller?
Could you help me with this,
You forgot to add a return statement into the action it specifies. go to the
login_check action, see if there the keyword return is used and if not add
it.
On Thu, May 12, 2011 at 11:05 AM, absdv arnob...@sdv.fr wrote:
Hello,
I've copied the AcmeDemo Secured configuration to my Bundle. But
Le 12/05/2011 11:05, absdv a écrit :
Hello,
I've copied the AcmeDemo Secured configuration to my Bundle. But when
I submit the login form, le login_check action give me this error :
The controller must return a response (null given). Did you forget to
add a return statement somewhere in your
If I add return; it doesn't change a thing.
If I add return true; or return new Response('');, I get :
The controller must return a response ('1' given).
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message
Here is my security.yml file :
security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
providers:
in_memory:
Le 12/05/2011 11:42, absdv a écrit :
Here is my security.yml file :
Your configuration is wrong: the firewall handles only the /admin/* part
of your site but you configured the check_path to /secured/login_check
which is outside this pattern. So the firewall is not handling the form.
--
It works, thank you very much.
--
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
Do you not know how functions work? A function often returns a value to
whatever called it. Perhaps go relearn your PHP. Seriously. If you do not
understand function return values, you really shouldn't be trying to
optimise your development with an MVC framework. You have bigger problems.
On Thu,