Bug 2818 - Allow patron editing to coexist with minPasswordLength and '****'.
authorJoe Atzberger <joe.atzberger@liblime.com>
Mon, 24 Nov 2008 23:42:33 +0000 (17:42 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 10 Dec 2008 13:27:41 +0000 (14:27 +0100)
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
members/memberentry.pl

index 3b4f1a2..7bc41e8 100755 (executable)
@@ -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);