mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Logout customer after deleting their account
This commit is contained in:
parent
4588809412
commit
ac253f3df7
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue