From 78b95ec0ab8c520831e50d20bd1682577b85d020 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Thu, 14 Jan 2021 14:39:08 +0200 Subject: [PATCH] Bug 27430: Use password minimum length for patron category on password hint Hint for password minimum length should use minimum length set for patron category not "minPasswordLength" value. To test: 1. Set "minPasswordLength" e.g. 6 2. Set "Patron" category minimum password length e.g. 4 3. Create new a patron. 4. Note that hint after password input field reads "Minimum password length: 6" 5. Apply patch. 6. Hint should now read "Minimum password length: 4". Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Sally Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 545c384205534fc52557bbe0eb4990405a44c7f7) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 60aecfe116..ed87d1643d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1137,7 +1137,7 @@ legend:hover { [% IF ( ERROR_password_has_whitespaces ) %] Password has leading or trailing whitespaces [% END %] -
Minimum password length: [% minPasswordLength | html %]
+
Minimum password length: [% patron.category.effective_min_password_length | html %]
  • -- 2.39.5