From be4d4a8e28a85f2baf90b03127428cadb551a00e Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 3 Jan 2018 10:56:37 +0000 Subject: [PATCH] Bug 19908: Password fields in edit/add patron form should respect BorrowerMandatoryField preference Test plan: 0) Do not apply the patch, note the password field is always required 1) Apply the patch 2) Try to add and edit patron with and without "password" in BorrowerMandatoryField, it should always respect this setting 3) Use "Change password" button in patron toolbar, the password field should be never required here - when leaved blank, the password is unchanged 4) Play with minPasswordLength and RequireStrongPassword preferences, to ensure they work as expected Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/members/member-password.tt | 2 -- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 -- 2 files changed, 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt index a86a546175..df7bb77364 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt @@ -137,12 +137,10 @@ $("#changepasswordf").validate({ rules: { newpassword: { - required: true, password_strong: true, password_no_spaces: true }, newpassword2: { - required: true, password_match: true } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index cbd3784ca1..d6a3afa0a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1247,12 +1247,10 @@ $("#entryform").validate({ rules: { password: { - required: true, password_strong: true, password_no_spaces: true }, password2: { - required: true, password_match: true } } -- 2.39.5