From 8fe5ce26fc2aec0cc1dd445e94918d62caa5fd47 Mon Sep 17 00:00:00 2001 From: Roman Dolny Date: Mon, 23 Dec 2024 09:54:56 +0000 Subject: [PATCH] Bug 38772: Typo 'minPasswordPreference' system preference Typo in system preference 'minPasswordPreference' -> 'minPasswordLength' in opac/opac-password-recovery.pl There is no 'minPasswordPreference' system preference in database. Bug 23816 added the capability to override minPasswordLength. Test plan: ========== 1. Check 'minPasswordPreference' appearances: git grep -i 'minPasswordPreference' **/* --> Note: only one in opac-password-recovery.pl; no one in sysprefs.sql 2. Apply the patch. 3. Repeat p. 1. Note there is not 'minPasswordPreference' at all. Signed-off-by: David Nind Signed-off-by: Katrin Fischer (cherry picked from commit 4b8db36d2ade8393a36af20d9eaf156291d96c43) Signed-off-by: Paul Derscheid Signed-off-by: wainuiwitikapark (cherry picked from commit 6ef34a6e3e6d58a79c741de48dbf773e9aacfb94) Signed-off-by: Fridolin Somers --- opac/opac-password-recovery.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl index 0c0824c674..c60cc0e378 100755 --- a/opac/opac-password-recovery.pl +++ b/opac/opac-password-recovery.pl @@ -151,7 +151,7 @@ elsif ( $query->param('passwordReset') ) { ( $borrower_number, $username ) = GetValidLinkInfo($uniqueKey); my $error; - my $min_password_length = C4::Context->preference('minPasswordPreference'); + my $min_password_length = C4::Context->preference('minPasswordLength'); my $require_strong_password = C4::Context->preference('RequireStrongPassword'); if ( not $borrower_number ) { $error = 'errLinkNotValid';