File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -748,12 +748,19 @@ function password(minLength, special){
748748 return password;
749749}
750750
751+ <?php
752+ $ min_password_length = 10 ;
753+ if (isset ($ server_config_array ['misc ' ]['min_password_length ' ])) {
754+ $ min_password_length = $ app ->functions ->intval ($ server_config_array ['misc ' ]['min_password_length ' ]);
755+ }
756+ ?>
757+
751758function generatePassword(passwordFieldID, repeatPasswordFieldID){
752759 var oldPWField = jQuery('#'+passwordFieldID);
753760 var newPWField = oldPWField.clone();
754761 newPWField.attr('type', 'text').attr('id', 'tmp'+passwordFieldID).insertBefore(oldPWField);
755762 oldPWField.remove();
756- var pword = password(10 , false);
763+ var pword = password(<?php echo $ min_password_length ?> , false);
757764 jQuery('#'+repeatPasswordFieldID).val(pword);
758765 newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup');
759766}
You can’t perform that action at this time.
0 commit comments