[Koha-patches] [PATCH] Bug 2818 - Allow patron editing to coexist with minPasswordLength and '****'.

Joe Atzberger joe.atzberger at liblime.com
Tue Nov 25 00:42:33 CET 2008


---
 members/memberentry.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/members/memberentry.pl b/members/memberentry.pl
index b246668..3a97e89 100755
--- a/members/memberentry.pl
+++ b/members/memberentry.pl
@@ -19,6 +19,7 @@
 
 # pragma
 use strict;
+# use warnings;  # FIXME: really.
 
 # external modules
 use CGI;
@@ -217,7 +218,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);
-- 
1.5.5.GIT




More information about the Koha-patches mailing list