diff options
author | Unknwon <u@gogs.io> | 2017-11-16 19:32:33 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-11-16 19:32:33 -0500 |
commit | 6f04ee879ca25fd798f85a4c701291adae561a1a (patch) | |
tree | cc8d06d0fe6022146f9717f647574aff34dcd65c /templates/admin | |
parent | e1e76d3f8823606ae48635e19d4e58cc3bdf163f (diff) |
auth/ldap: allow placeholder %s for BindDN (#2526)
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 1 | ||||
-rw-r--r-- | templates/admin/auth/new.tmpl | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 3b69bd0e..32de620c 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -50,6 +50,7 @@ <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"> + <p class="help text red">{{.i18n.Tr "admin.auths.bind_dn_helper"}}</p> </div> <input class="fake" type="password"> <div class="field"> diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 1abfee57..e164f531 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -56,6 +56,7 @@ <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"> + <p class="help text blue">{{.i18n.Tr "admin.auths.bind_dn_helper"}}</p> </div> <div class="ldap field {{if not (eq .type 2)}}hide{{end}}"> <label for="bind_password">{{.i18n.Tr "admin.auths.bind_password"}}</label> |