]> source.dussan.org Git - gitea.git/commitdiff
LDAP parameters UI: bind_dn and bind_password are not required
authorSlavikZ <slavikz@pc>
Wed, 9 Dec 2015 18:55:35 +0000 (20:55 +0200)
committerSlavikZ <slavikz@pc>
Wed, 9 Dec 2015 19:02:19 +0000 (21:02 +0200)
templates/admin/auth/edit.tmpl
templates/admin/auth/new.tmpl

index 5c99af3a389cabdb1bdc065cd72cf2f3b4aa536a..426d37e40a7ad0908e986064ecec4efbe77da0e1 100644 (file)
                                                                <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">
index 481d0c6829711900c292ba3d21fe5a9d4d4e61e0..f06d3de7e32640d1b80d8925cf87f69e655e30e3 100644 (file)
                                                                <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>