In the moment that the user is authenticated, I need to check his role to redirect him to the correct page (two different pages for two different roles).
I haven't found in the documentation how to override the login_check. Right from the bundle, it uses the security.yml configuration proxy to tell the engine to go to one unique default page. Any clue?
The same problem for logout.
If I understood you correctly, you want to redirect freshly logged in/logged out user to appropriate route depending on its role?
Here is a tutorial on how to do redirection on login/logout using form handlers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With