The pattern check didn't work for me, but I figured we might
want to use the same validation as for the other numeric fields
on the form instead (upper age limit, etc.)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
</li>
<li>
<label for="min_password_length">Minimum password length:</label>
- <input id="min_password_length" type="text" inputmode="numeric" pattern="[0-9]*" name="min_password_length" value="[% category.min_password_length | html %]"/>
+ <input id="min_password_length" type="text" inputmode="numeric" name="min_password_length" value="[% category.min_password_length | html %]"/>
<span>Leave blank to use system default ([% Koha.Preference('minPasswordLength') | html %])</span>
</li>
<li class="pwd_setting_wrapper">
},
category_type: {
required: true
+ },
+ min_password_length: {
+ digits: true
}
},
messages: {