diff options
author | Unknwon <u@gogs.io> | 2015-12-15 22:57:18 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-15 22:57:18 -0500 |
commit | b117befc2b4f5ec1e864e2eeaf99355861be01d7 (patch) | |
tree | a6f3b95e28e606f89d672e5079070b1cd9119c69 /routers/user/setting.go | |
parent | 7786cb76f3bfc87f92aaae5cc70cbfa974b76868 (diff) | |
download | gitea-b117befc2b4f5ec1e864e2eeaf99355861be01d7.tar.gz gitea-b117befc2b4f5ec1e864e2eeaf99355861be01d7.zip |
#1692 add user email APIs
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 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 { |