Bugzilla – Attachment 135676 Details for
Bug 30864
Patron category form - no validation for password expiration field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30864: Add validation to password_expiry_days
Bug-30864-Add-validation-to-passwordexpirydays.patch (text/plain), 1.48 KB, created by
Nick Clemens (kidclamp)
on 2022-06-03 10:59:21 UTC
(
hide
)
Description:
Bug 30864: Add validation to password_expiry_days
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-06-03 10:59:21 UTC
Size:
1.48 KB
patch
obsolete
>From 2332c9c055079b4921e12315d260d8ff02e7e4c6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 1 Jun 2022 14:29:59 +0200 >Subject: [PATCH] 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> >--- > koha-tmpl/intranet-tmpl/prog/js/categories.js | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/categories.js b/koha-tmpl/intranet-tmpl/prog/js/categories.js >index efecda4e7e..90a8a33ac2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/categories.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/categories.js >@@ -64,6 +64,9 @@ $(document).ready(function() { > }, > enrollment_period: true > }, >+ password_expiry_days: { >+ digits: true >+ }, > dateofbirthrequired: { > digits: true > }, >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30864
:
135539
|
135555
| 135676