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:
parent
6ac5839180
commit
cf69b5afc2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue