mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 15:07:20 +00:00
Small fixes to multiple_emails feature
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user