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
02551aa802
commit
cbb9710371
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue