mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-09 03:52:48 +00:00
SEC-359: Logout even if not logged in.
This commit is contained in:
parent
fa6b4480b1
commit
5911234f65
@ -94,11 +94,9 @@ public class LogoutFilter implements Filter {
|
|||||||
logger.debug("Logging out user '" + auth + "' and redirecting to logout page");
|
logger.debug("Logging out user '" + auth + "' and redirecting to logout page");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auth != null) {
|
|
||||||
for (int i = 0; i < handlers.length; i++) {
|
for (int i = 0; i < handlers.length; i++) {
|
||||||
handlers[i].logout(httpRequest, httpResponse, auth);
|
handlers[i].logout(httpRequest, httpResponse, auth);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
sendRedirect(httpRequest, httpResponse, logoutSuccessUrl);
|
sendRedirect(httpRequest, httpResponse, logoutSuccessUrl);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user