For login success there is a parameter use_referer: true
. For login failure there is only failure_path
, which isn't what I'm looking for.
Second thing: How to do that and pass error message?
Third thing: How to go back to referrer after logout?
For login success there is a parameter use_referer: true
. For login failure there is only failure_path
, which isn't what I'm looking for.
Second thing: How to do that and pass error message?
Third thing: How to go back to referrer after logout?
I solved it.
There is solution: How to disable redirection after login_check in Symfony 2
and here is code which solves my problem:
to handle events add to security.yml for example:
and to config.yml: