aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-15 22:57:18 -0500
committerUnknwon <u@gogs.io>2015-12-15 22:57:18 -0500
commitb117befc2b4f5ec1e864e2eeaf99355861be01d7 (patch)
treea6f3b95e28e606f89d672e5079070b1cd9119c69 /routers/user/setting.go
parent7786cb76f3bfc87f92aaae5cc70cbfa974b76868 (diff)
downloadgitea-b117befc2b4f5ec1e864e2eeaf99355861be01d7.tar.gz
gitea-b117befc2b4f5ec1e864e2eeaf99355861be01d7.zip
#1692 add user email APIs
Diffstat (limited to 'routers/user/setting.go')
-rw-r--r--routers/user/setting.go2
1 files changed, 1 insertions, 1 deletions
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 {