diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-25 22:53:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-25 22:53:57 +0800 |
commit | e8e56da9ac321aacb3c06968997a45c2f133cd4e (patch) | |
tree | caff61d672cfb50a71c594bc506b4f51c5723f86 /routers | |
parent | ddb0287bf61f1c4271eef92f61e297101b708671 (diff) | |
download | gitea-e8e56da9ac321aacb3c06968997a45c2f133cd4e.tar.gz gitea-e8e56da9ac321aacb3c06968997a45c2f133cd4e.zip |
fix #13 (#1042)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go index 16ba2bb050..66ee680fb5 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -104,7 +104,7 @@ func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm) { ctx.User.KeepEmailPrivate = form.KeepEmailPrivate ctx.User.Website = form.Website ctx.User.Location = form.Location - if err := models.UpdateUser(ctx.User); err != nil { + if err := models.UpdateUserSetting(ctx.User); err != nil { if _, ok := err.(models.ErrEmailAlreadyUsed); ok { ctx.Flash.Error(ctx.Tr("form.email_been_used")) ctx.Redirect(setting.AppSubURL + "/user/settings") |