diff options
author | Peter <peter@smitmail.eu> | 2014-12-20 09:26:51 +0200 |
---|---|---|
committer | Peter <peter@smitmail.eu> | 2014-12-20 09:26:51 +0200 |
commit | 20b5c23a192b3a87b4fdac724c5be705588e461c (patch) | |
tree | 4ba080b3fe707fd446f8b74d4b0e9030e221c453 /routers/user/setting.go | |
parent | b033f2f535ad498ed78da6599d446abe2fd5c27d (diff) | |
download | gitea-20b5c23a192b3a87b4fdac724c5be705588e461c.tar.gz gitea-20b5c23a192b3a87b4fdac724c5be705588e461c.zip |
Small fixes to multiple_emails feature
Diffstat (limited to 'routers/user/setting.go')
-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 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, } |