]> git.koha-community.org Git - koha.git/commit
Bug 30864: Add validation to password_expiry_days
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 1 Jun 2022 12:29:59 +0000 (14:29 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Jun 2022 16:49:00 +0000 (13:49 -0300)
commit79396ae625ac772e4a6c01f2649a7147a07cc7b7
treecbfc9dd53effad0fad8feb448c2c86678f0b41f7
parent7306f945ce9cba653c298e0c84016b9c8a7bd582
Bug 30864: Add validation to password_expiry_days

When creating a patron category or editing an existing one, there is no validation for the "Password expiration" field.

If letters or other characters are entered, there is no error message and if not a number whatever is entered is not saved.

To test:
1. Go to Administration > Patrons and circulation > Patron categories.
2. Add a new patron category (or edit an existing category).
3. For the "Password expiration" field, enter letters or characters such as L$%.
=> Note that you are prompted to "Please enter only digits"

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/categories.js