Small fixes to multiple_emails feature
This commit is contained in:
parent
b033f2f535
commit
20b5c23a19
2 changed files with 13 additions and 13 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue