From b117befc2b4f5ec1e864e2eeaf99355861be01d7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 15 Dec 2015 22:57:18 -0500 Subject: #1692 add user email APIs --- 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 b338e112ab..56a9cab0a2 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -226,7 +226,7 @@ func SettingsEmailPost(ctx *middleware.Context, form auth.AddEmailForm) { e := &models.EmailAddress{ UID: ctx.User.Id, - Email: strings.TrimSpace(form.Email), + Email: form.Email, IsActivated: !setting.Service.RegisterEmailConfirm, } if err := models.AddEmailAddress(e); err != nil { -- cgit v1.2.3