Merge pull request #1322 from Metrax/master

Fixing Validation problem on LDAP form
This commit is contained in:
Matt Scott 2022-12-13 20:59:22 -05:00 committed by GitHub
commit 30ed68471e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -735,15 +735,17 @@
$('#ldap_admin_username').prop('required', true); $('#ldap_admin_username').prop('required', true);
$('#ldap_admin_password').prop('required', true); $('#ldap_admin_password').prop('required', true);
$('#ldap_domain').prop('required', false); $('#ldap_domain').prop('required', false);
$('#ldap_filter_group').prop('required', true);
$('#ldap_filter_groupname').prop('required', true);
} else { } else {
$('#ldap_admin_username').prop('required', false); $('#ldap_admin_username').prop('required', false);
$('#ldap_admin_password').prop('required', false); $('#ldap_admin_password').prop('required', false);
$('#ldap_domain').prop('required', true); $('#ldap_domain').prop('required', true);
$('#ldap_filter_group').prop('required', false);
$('#ldap_filter_groupname').prop('required', false);
} }
$('#ldap_filter_basic').prop('required', true); $('#ldap_filter_basic').prop('required', true);
$('#ldap_filter_group').prop('required', true);
$('#ldap_filter_username').prop('required', true); $('#ldap_filter_username').prop('required', true);
$('#ldap_filter_groupname').prop('required', true);
if ($('#ldap_sg_on').is(":checked")) { if ($('#ldap_sg_on').is(":checked")) {
$('#ldap_admin_group').prop('required', true); $('#ldap_admin_group').prop('required', true);