Logout customer after deleting their account

This commit is contained in:
Denis Natusch 2023-11-14 19:08:15 +01:00 committed by Simon Bruder
parent cd401219e2
commit d29c1b4553
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -83,7 +83,7 @@ public class UserController {
@PreAuthorize("hasRole('CUSTOMER')")
public String disableUser(@LoggedIn UserAccount userAccount) {
userManagement.disableUserAccount(userAccount);
return "redirect:/";
return "redirect:/logout";
}
@GetMapping("/customers")