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 /templates/admin | |
parent | 373ef5d15e1c2781bf47750554cb21e4ed5446c1 (diff) | |
download | gitea-362d64df0483700ac435c4b05709265378887a4e.tar.gz gitea-362d64df0483700ac435c4b05709265378887a4e.zip |
#1620 add allowed domains for SMTP auth
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 5 | ||||
-rw-r--r-- | templates/admin/auth/new.tmpl | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 7de07ff26a..f2d21d8b29 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -101,6 +101,11 @@ <label for="smtp_port">{{.i18n.Tr "admin.auths.smtpport"}}</label> <input id="smtp_port" name="smtp_port" value="{{$cfg.Port}}" required> </div> + <div class="field"> + <label for="allowed_domains">{{.i18n.Tr "admin.auths.allowed_domains"}}</label> + <input id="allowed_domains" name="allowed_domains" value="{{$cfg.AllowedDomains}}"> + <p class="help">{{.i18n.Tr "admin.auths.allowed_domains_helper"}}</p> + </div> {{end}} <!-- PAM --> diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 06bcb8dfac..e7edccf6a8 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -103,6 +103,11 @@ <label for="smtp_port">{{.i18n.Tr "admin.auths.smtpport"}}</label> <input id="smtp_port" name="smtp_port" value="{{.smtp_port}}"> </div> + <div class="field"> + <label for="allowed_domains">{{.i18n.Tr "admin.auths.allowed_domains"}}</label> + <input id="allowed_domains" name="allowed_domains" value="{{.allowed_domains}}"> + <p class="help">{{.i18n.Tr "admin.auths.allowed_domains_helper"}}</p> + </div> </div> <!-- PAM --> |