diff options
Diffstat (limited to 'templates/admin')
-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}}> |