diff options
author | Unknwon <u@gogs.io> | 2015-09-14 15:48:51 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-14 15:48:51 -0400 |
commit | f5c7f22cc8595a81b5d9f9da4a0a29faf2dbbdce (patch) | |
tree | af338ee4d3f7ca0edec0f8e1159b52d69da5f912 /templates/admin/auth | |
parent | 2bc3e83e1ce89a6c250116216a93da3a401127db (diff) | |
download | gitea-f5c7f22cc8595a81b5d9f9da4a0a29faf2dbbdce.tar.gz gitea-f5c7f22cc8595a81b5d9f9da4a0a29faf2dbbdce.zip |
#1637 able to skip verify for LDAP
Diffstat (limited to 'templates/admin/auth')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 6 | ||||
-rw-r--r-- | templates/admin/auth/new.tmpl | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 377bbbcffa..1cd647cc56 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -123,14 +123,12 @@ <input name="tls" type="checkbox" {{if .Source.UseTLS}}checked{{end}}> </div> </div> - {{if .Source.IsSMTP}} - <div class="inline field"> + <div class="inline field {{if not (or (or .Source.IsLDAP .Source.IsDLDAP) .Source.IsSMTP)}}hide{{end}}"> <div class="ui checkbox"> <label><strong>{{.i18n.Tr "admin.auths.skip_tls_verify"}}</strong></label> - <input name="skip_verify" type="checkbox" {{if .Source.SMTP.SkipVerify}}checked{{end}}> + <input name="skip_verify" type="checkbox" {{if .Source.SkipVerify}}checked{{end}}> </div> </div> - {{end}} <div class="inline field"> <div class="ui checkbox"> <label><strong>{{.i18n.Tr "admin.auths.activated"}}</strong></label> diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 6c38ec5b5d..5b5a81acc9 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -122,7 +122,7 @@ <input name="tls" type="checkbox" {{if .tls}}checked{{end}}> </div> </div> - <div class="smtp inline field {{if not (eq .type 3)}}hide{{end}}"> + <div class="ldap dldap smtp inline field {{if not (or (or (eq .type 2) (eq .type 5)) (eq .type 3))}}hide{{end}}"> <div class="ui checkbox"> <label><strong>{{.i18n.Tr "admin.auths.skip_tls_verify"}}</strong></label> <input name="skip_verify" type="checkbox" {{if .skip_verify}}checked{{end}}> |