Skip to content

Commit 505fe3a

Browse files
ngocnhan-tran1996rwinch
authored andcommitted
Correct method name
Closes gh-17031 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent 9710492 commit 505fe3a

File tree

1 file changed

+2
-2
lines changed
  • docs/modules/ROOT/pages/servlet/authentication

1 file changed

+2
-2
lines changed

docs/modules/ROOT/pages/servlet/authentication/logout.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ SecurityContextLogoutHandler logoutHandler = new SecurityContextLogoutHandler();
402402
@PostMapping("/my/logout")
403403
public String performLogout(Authentication authentication, HttpServletRequest request, HttpServletResponse response) {
404404
// .. perform logout
405-
this.logoutHandler.doLogout(request, response, authentication);
405+
this.logoutHandler.logout(request, response, authentication);
406406
return "redirect:/home";
407407
}
408408
----
@@ -416,7 +416,7 @@ val logoutHandler = SecurityContextLogoutHandler()
416416
@PostMapping("/my/logout")
417417
fun performLogout(val authentication: Authentication, val request: HttpServletRequest, val response: HttpServletResponse): String {
418418
// .. perform logout
419-
this.logoutHandler.doLogout(request, response, authentication)
419+
this.logoutHandler.logout(request, response, authentication)
420420
return "redirect:/home"
421421
}
422422
----

0 commit comments

Comments
 (0)