diff options
author | Unknwon <u@gogs.io> | 2015-09-11 13:32:33 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-11 13:32:33 -0400 |
commit | 362d64df0483700ac435c4b05709265378887a4e (patch) | |
tree | fb367bbd236ea7707df0d9d5bbfe5d95a19dca0a /routers/admin/auths.go | |
parent | 373ef5d15e1c2781bf47750554cb21e4ed5446c1 (diff) | |
download | gitea-362d64df0483700ac435c4b05709265378887a4e.tar.gz gitea-362d64df0483700ac435c4b05709265378887a4e.zip |
#1620 add allowed domains for SMTP auth
Diffstat (limited to 'routers/admin/auths.go')
-rw-r--r-- | routers/admin/auths.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/routers/admin/auths.go b/routers/admin/auths.go index 5e9d3be140..ef47b86b97 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -88,11 +88,12 @@ func parseLDAPConfig(form auth.AuthenticationForm) *models.LDAPConfig { func parseSMTPConfig(form auth.AuthenticationForm) *models.SMTPConfig { return &models.SMTPConfig{ - Auth: form.SMTPAuth, - Host: form.SMTPHost, - Port: form.SMTPPort, - TLS: form.TLS, - SkipVerify: form.SkipVerify, + Auth: form.SMTPAuth, + Host: form.SMTPHost, + Port: form.SMTPPort, + AllowedDomains: form.AllowedDomains, + TLS: form.TLS, + SkipVerify: form.SkipVerify, } } |