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
cd401219e2
commit
d29c1b4553
|
@ -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