From 20b5c23a192b3a87b4fdac724c5be705588e461c Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 20 Dec 2014 09:26:51 +0200 Subject: Small fixes to multiple_emails feature --- routers/user/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/user/setting.go') diff --git a/routers/user/setting.go b/routers/user/setting.go index 7dca5d8697..419e84b395 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -197,7 +197,7 @@ func SettingsEmailPost(ctx *middleware.Context, form auth.AddEmailForm) { cleanEmail := strings.Replace(form.Email, "\n", "", -1) e := &models.EmailAddress{ - OwnerId: ctx.User.Id, + Uid: ctx.User.Id, Email: cleanEmail, IsActivated: !setting.Service.RegisterEmailConfirm, } -- cgit v1.2.3