Logout user when changing the username

This commit is contained in:
Denis Natusch 2023-11-15 01:24:35 +01:00 committed by Simon Bruder
parent a11c23ab98
commit 3478fe2b24
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -76,6 +76,10 @@ public class UserController {
userManagement.save(user);
if (!username.isBlank()){
return "redirect:/logout";
}
return "redirect:/profile";
}