diff --git a/src/www/system_authservers.php b/src/www/system_authservers.php index 6270c9690..af5ee8b46 100644 --- a/src/www/system_authservers.php +++ b/src/www/system_authservers.php @@ -343,6 +343,14 @@ $( document ).ready(function() { $('.selectpicker').selectpicker('refresh'); }); + $("#enable_password_policy_constraints").change(function () { + if ($("#enable_password_policy_constraints").prop('checked')) { + $(".password_policy_constraints").show(); + } else { + $(".password_policy_constraints").hide(); + } + }); + $("#ldap_urltype").change(function(){ $("#ldap_port").val($(this).find(':selected').data('port')); }); @@ -402,6 +410,7 @@ $( document ).ready(function() { if ($("#ldap_attr_user").val() == "") { $("#ldap_tmpltype").change(); } + $("#enable_password_policy_constraints").change(); $("#type").change(); $("#act_select").click(function() { @@ -538,7 +547,7 @@ endif; ?> - + @@ -569,7 +578,7 @@ endif; ?> - + />