🔖 chore: prohibit users from modifying usernames

This commit is contained in:
MartialBE
2024-05-15 12:35:04 +08:00
parent 59d3b13311
commit 5ae57435ba
3 changed files with 5 additions and 7 deletions

View File

@@ -415,8 +415,8 @@ func UpdateSelf(c *gin.Context) {
}
cleanUser := model.User{
Id: c.GetInt("id"),
Username: user.Username,
Id: c.GetInt("id"),
// Username: user.Username,
Password: user.Password,
DisplayName: user.DisplayName,
}