summaryrefslogtreecommitdiffstats
path: root/templates/admin/auth/edit.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-29 15:45:58 +0800
committerUnknwon <u@gogs.io>2015-08-29 15:45:58 +0800
commitea454c21f776a0fd4f7d3a64218bea6e743e5dce (patch)
tree5c2b6e55a0cf9e6cf9b7bc21a1437a1bc7ab5655 /templates/admin/auth/edit.tmpl
parent384fbeca801180c2f156e916bf69324590472e03 (diff)
downloadgitea-ea454c21f776a0fd4f7d3a64218bea6e743e5dce.tar.gz
gitea-ea454c21f776a0fd4f7d3a64218bea6e743e5dce.zip
#1542 A way to skip TLS verify for SMTP authentication
Diffstat (limited to 'templates/admin/auth/edit.tmpl')
-rw-r--r--templates/admin/auth/edit.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index 11cfcdb938..6da77f1282 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -12,9 +12,9 @@
<div class="panel-header">
<strong>{{.i18n.Tr "admin.auths.edit"}}</strong>
</div>
- <form class="form form-align panel-body" id="auth-setting-form" action="{{AppSubUrl}}/admin/auths/{{.Source.Id}}" data-delete-url="{{AppSubUrl}}/admin/auths/{{.Source.Id}}/delete" method="post">
+ <form class="form form-align panel-body" id="auth-setting-form" action="{{AppSubUrl}}/admin/auths/{{.Source.ID}}" data-delete-url="{{AppSubUrl}}/admin/auths/{{.Source.ID}}/delete" method="post">
{{.CsrfTokenHtml}}
- <input type="hidden" value="{{.Source.Id}}" name="id"/>
+ <input type="hidden" value="{{.Source.ID}}" name="id"/>
{{$type := .Source.Type}}
<div class="field">
<label>{{.i18n.Tr "admin.auths.auth_type"}}</label>
@@ -109,6 +109,10 @@
<input name="tls" type="checkbox" {{if .Source.SMTP.TLS}}checked{{end}}>
<strong>{{.i18n.Tr "admin.auths.enable_tls"}}</strong>
<br>
+ <label></label>
+ <input name="skip_verify" type="checkbox" {{if .Source.SMTP.SkipVerify}}checked{{end}}>
+ <strong>{{.i18n.Tr "admin.auths.skip_tls_verify"}}</strong>
+ <br>
{{end}}
<label></label>
<input name="allowautoregister" type="checkbox" {{if .Source.AllowAutoRegister}}checked{{end}}>