summaryrefslogtreecommitdiffstats
path: root/routers/admin/auths.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-11 13:32:33 -0400
committerUnknwon <u@gogs.io>2015-09-11 13:32:33 -0400
commit362d64df0483700ac435c4b05709265378887a4e (patch)
treefb367bbd236ea7707df0d9d5bbfe5d95a19dca0a /routers/admin/auths.go
parent373ef5d15e1c2781bf47750554cb21e4ed5446c1 (diff)
downloadgitea-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.go11
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,
}
}