From cf69b5afc282a9496175bd42c0a88bb07d3bd65b Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Mon, 24 Nov 2008 17:42:33 -0600 Subject: [PATCH] Bug 2818 - Allow patron editing to coexist with minPasswordLength and '****'. Signed-off-by: Henri-Damien LAURENT --- members/memberentry.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 3b4f1a2ac0..7bc41e8a42 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -19,6 +19,7 @@ # pragma use strict; +# use warnings; # FIXME: really. # external modules use CGI; @@ -213,7 +214,7 @@ if ($op eq 'save' || $op eq 'insert'){ } my $password = $input->param('password'); - push @errors, "ERROR_short_password" if( $password && $minpw && (length($password) < $minpw ) ); + push @errors, "ERROR_short_password" if( $password && $minpw && $password ne '****' && (length($password) < $minpw) ); if (C4::Context->preference('ExtendedPatronAttributes')) { $extended_patron_attributes = parse_extended_patron_attributes($input); -- 2.39.5