summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorTony Homrich <tenacubus@gmail.com>2018-12-27 11:51:19 -0500
committertechknowlogick <hello@techknowlogick.com>2018-12-27 11:51:19 -0500
commit2058c362a8325790ed1f83163b233ce342d3789b (patch)
tree1bd54126b9e89e785738060f1f730a2dcc87d9fb /public
parent6e20b504b1d5f63b1835f2826d6cbaf2064f479d (diff)
downloadgitea-2058c362a8325790ed1f83163b233ce342d3789b.tar.gz
gitea-2058c362a8325790ed1f83163b233ce342d3789b.zip
LDAP via simple auth separate bind user and search base (#5055)
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 3d078a9848..918918ef46 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1415,13 +1415,15 @@ function initAdmin() {
$('#auth_type').change(function () {
$('.ldap, .dldap, .smtp, .pam, .oauth2, .has-tls .search-page-size').hide();
- $('.ldap input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required], .has-tls input[required]').removeAttr('required');
+ $('.ldap input[required], .binddnrequired input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required], .has-tls input[required]').removeAttr('required');
+ $('.binddnrequired').removeClass("required");
var authType = $(this).val();
switch (authType) {
case '2': // LDAP
$('.ldap').show();
- $('.ldap div.required:not(.dldap) input').attr('required', 'required');
+ $('.binddnrequired input, .ldap div.required:not(.dldap) input').attr('required', 'required');
+ $('.binddnrequired').addClass("required");
break;
case '3': // SMTP
$('.smtp').show();