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