1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-23 01:48:27 +00:00

Fix user primary email changed (#17840)

This commit is contained in:
Lunny Xiao
2021-11-28 19:04:44 +08:00
committed by GitHub
parent 04517e17d6
commit d29a0fc3be
6 changed files with 58 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ func UpdateUserSettings(ctx *context.APIContext) {
ctx.User.KeepActivityPrivate = *form.HideActivity
}
if err := models.UpdateUser(ctx.User); err != nil {
if err := models.UpdateUser(ctx.User, false); err != nil {
ctx.InternalServerError(err)
return
}