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 4588809412
commit ac253f3df7
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")