aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorngourdon <31291059+ngourdon@users.noreply.github.com>2019-04-28 15:53:55 +0200
committertechknowlogick <hello@techknowlogick.com>2019-04-28 09:53:55 -0400
commitd29d97d91cab8b34165ec65b9de3be746312f015 (patch)
tree1ac917bd99c7ff124bc4878d77a0e94a5d4b4ce4 /templates
parent345bc06e56c05985611029c89cb15f0c9c10b686 (diff)
downloadgitea-d29d97d91cab8b34165ec65b9de3be746312f015.tar.gz
gitea-d29d97d91cab8b34165ec65b9de3be746312f015.zip
Set user search base field optional in DLDAP edit page (#6779)
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/auth/edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index 8807657c33..6a176a43a8 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -58,7 +58,7 @@
{{end}}
<div class="{{if .Source.IsLDAP}}required{{end}} field">
<label for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label>
- <input id="user_base" name="user_base" value="{{$cfg.UserBase}}" placeholder="e.g. ou=Users,dc=mydomain,dc=com" required>
+ <input id="user_base" name="user_base" value="{{$cfg.UserBase}}" placeholder="e.g. ou=Users,dc=mydomain,dc=com" {{if .Source.IsLDAP}}required{{end}}>
</div>
{{if .Source.IsDLDAP}}
<div class="required field">