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 <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4b8db36d2a)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
76851bd358
commit
ebb624abf0
|
|
@ -152,7 +152,7 @@ elsif ( $op eq 'cud-reset_password' ) {
|
|||
( $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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue