In a Symfony 5.0 Application I have the following scenario:
An admin user is able to create new users. If a new user is created in that way I want to log out the admin redirect to the login screen and set the prefilled value in the email field to the one of the user created just before.
Currently I have a link with href="{{ path('app_logout', {email: user.email}) }}"
I the SecurityController I got the default logout method defined like this
/**
* @Route("/logout", name="app_logout")
*/
public function logout()
{
throw new \Exception('This method can be blank - it will be intercepted by the logout key on your firewall');
}
So... how would I be able to process the "email"-parameter and pass it on to the login function to handle it there?