aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/setting.go')
-rw-r--r--routers/user/setting.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index a465b0cd8c..bba0f1e876 100644
--- a/routers/user/setting.go
+++ b/routers/user/setting.go
@@ -91,6 +91,7 @@ func SettingsPost(ctx *context.Context, form auth.UpdateProfileForm) {
ctx.User.FullName = form.FullName
ctx.User.Email = form.Email
+ ctx.User.KeepEmailPrivate = form.KeepEmailPrivate
ctx.User.Website = form.Website
ctx.User.Location = form.Location
if err := models.UpdateUser(ctx.User); err != nil {