Bug 2818 - Allow patron editing to coexist with minPasswordLength and '****'.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Joe Atzberger 2008-11-24 17:42:33 -06:00 committed by Henri-Damien LAURENT
parent 6ac5839180
commit cf69b5afc2
1 changed files with 2 additions and 1 deletions

View File

@ -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);