mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Logout user when changing the username
This commit is contained in:
parent
a11c23ab98
commit
3478fe2b24
|
@ -76,6 +76,10 @@ public class UserController {
|
|||
|
||||
userManagement.save(user);
|
||||
|
||||
if (!username.isBlank()){
|
||||
return "redirect:/logout";
|
||||
}
|
||||
|
||||
return "redirect:/profile";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue