Skip to content

Commit

Permalink
FIX: Corrected typo preventing data from being saved (#31716)
Browse files Browse the repository at this point in the history
* FIX: Corrected typo preventing data from being saved

* fix missing length
  • Loading branch information
atm-quentin authored Nov 6, 2024
1 parent 0819a57 commit bc8d443
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htdocs/admin/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
print '<script type="text/javascript">';
print ' function getStringArg(){';
print ' var pattern = "";';
print ' pattern += $("#minlenght").val() + ";";';
print ' pattern += $("#minlength").val() + ";";';
print ' pattern += $("#NbMajMin").val() + ";";';
print ' pattern += $("#NbNumMin").val() + ";";';
print ' pattern += $("#NbSpeMin").val() + ";";';
Expand All @@ -342,14 +342,14 @@
print ' }';

print ' function valuePossible(){';
print ' var fields = ["#minlenght", "#NbMajMin", "#NbNumMin", "#NbSpeMin", "#NbIteConsecutive"];';
print ' var fields = ["#minlength", "#NbMajMin", "#NbNumMin", "#NbSpeMin", "#NbIteConsecutive"];';
print ' for(var i = 0 ; i < fields.length ; i++){';
print ' if($(fields[i]).val() < $(fields[i]).attr("min")){';
print ' return false;';
print ' }';
print ' }';
print ' ';
print ' var length = parseInt($("#minlenght").val());';
print ' var length = parseInt($("#minlength").val());';
print ' var length_mini = parseInt($("#NbMajMin").val()) + parseInt($("#NbNumMin").val()) + parseInt($("#NbSpeMin").val());';
print ' return length >= length_mini;';
print ' }';
Expand All @@ -373,7 +373,7 @@
print ' }';
print ' }';

print ' $("#minlenght").change(function(){valuePatternChange();});';
print ' $("#minlength").change(function(){valuePatternChange();});';
print ' $("#NbMajMin").change(function(){valuePatternChange();});';
print ' $("#NbNumMin").change(function(){valuePatternChange();});';
print ' $("#NbSpeMin").change(function(){valuePatternChange();});';
Expand Down

0 comments on commit bc8d443

Please sign in to comment.