-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
Description
Hello.
If the user is not logged in and go to /logout
uri, when logs in next time it redirects to /logout
I think this is a problem.
This is because target_path
session var.
Example
Edit LoginFormAuthenticator.tpl.php
if ($targetPath = $this->getTargetPath($request->getSession(), $firewallName)) {
if(str_contains($targetPath, '/logout'))
{
$this->removeTargetPath($request->getSession(), $firewallName);
} else {
return new RedirectResponse($targetPath);
}
}
Baptiste-ContrerasAdreaSpomky