mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
parent
244b5a9a74
commit
506824a8b7
|
@ -74,14 +74,14 @@ public class UserController {
|
|||
userManagement.setPassword(password, user.getUserAccount());
|
||||
}
|
||||
|
||||
if (username != userAccount.getUsername()){
|
||||
userManagement.save(user);
|
||||
|
||||
if (!username.isBlank()){
|
||||
return "redirect:/logout";
|
||||
}
|
||||
|
||||
} else {
|
||||
userManagement.save(user);
|
||||
return "redirect:/profile";
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/profile/disable")
|
||||
@PreAuthorize("hasRole('CUSTOMER')")
|
||||
|
|
Loading…
Reference in a new issue