diff options
author | Unknwon <u@gogs.io> | 2015-12-09 16:47:03 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-09 16:47:03 -0500 |
commit | fa5e372f7553a4ac9eea1e183ecfc526edb52a77 (patch) | |
tree | de75189a7282a5a4c81ecc02f6850b09d655ccad /templates | |
parent | 356f1438a63e74228592507c07db6413a26d2f6b (diff) | |
parent | a19aaa439d0448b2407a3b96a8d5377938c22ded (diff) | |
download | gitea-fa5e372f7553a4ac9eea1e183ecfc526edb52a77.tar.gz gitea-fa5e372f7553a4ac9eea1e183ecfc526edb52a77.zip |
Merge pull request #2138 from SlavikZ/master
LDAP parameters UI: bind_dn and bind_password are not required
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 8 | ||||
-rw-r--r-- | templates/admin/auth/new.tmpl | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 5c99af3a38..426d37e40a 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -34,14 +34,14 @@ <input id="port" name="port" value="{{$cfg.Port}}" placeholder="e.g. 636" required> </div> {{if .Source.IsLDAP}} - <div class="required field"> + <div class="field"> <label for="bind_dn">{{.i18n.Tr "admin.auths.bind_dn"}}</label> - <input id="bind_dn" name="bind_dn" value="{{$cfg.BindDN}}" placeholder="e.g. cn=Search,dc=mydomain,dc=com" required> + <input id="bind_dn" name="bind_dn" value="{{$cfg.BindDN}}" placeholder="e.g. cn=Search,dc=mydomain,dc=com"> </div> <input class="fake" type="password"> - <div class="required field"> + <div class="field"> <label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label> - <input id="bind_password" name="bind_password" type="password" value="{{$cfg.BindPassword}}" required> + <input id="bind_password" name="bind_password" type="password" value="{{$cfg.BindPassword}}"> <p class="help text red">{{.i18n.Tr "admin.auths.bind_password_helper"}}</p> </div> <div class="required field"> diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 481d0c6829..f06d3de7e3 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -40,12 +40,12 @@ <label for="port">{{.i18n.Tr "admin.auths.port"}}</label> <input id="port" name="port" value="{{.port}}" placeholder="e.g. 636"> </div> - <div class="ldap required field {{if not (eq .type 2)}}hide{{end}}"> + <div class="ldap field {{if not (eq .type 2)}}hide{{end}}"> <label for="bind_dn">{{.i18n.Tr "admin.auths.bind_dn"}}</label> <input id="bind_dn" name="bind_dn" value="{{.bind_dn}}" placeholder="e.g. cn=Search,dc=mydomain,dc=com"> </div> <input class="fake" type="password"> - <div class="ldap required field {{if not (eq .type 2)}}hide{{end}}"> + <div class="ldap field {{if not (eq .type 2)}}hide{{end}}"> <label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label> <input id="bind_password" name="bind_password" type="password" value="{{.bind_password}}"> <p class="help text red">{{.i18n.Tr "admin.auths.bind_password_helper"}}</p> |