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 02551aa802
commit cbb9710371
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

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