Fix for Bug 5280 - Fix password field so that the password is masked as it is entered
[koha.git] / members / memberentry.pl
index 6de07bf..86dd6ed 100755 (executable)
@@ -292,6 +292,8 @@ if ($op eq 'save' || $op eq 'insert'){
   }
   
   my $password = $input->param('password');
+  my $password2 = $input->param('password2');
+  push @errors, "ERROR_password_mismatch" if ( $password ne $password2 );
   push @errors, "ERROR_short_password" if( $password && $minpw && $password ne '****' && (length($password) < $minpw) );
 
   if (C4::Context->preference('ExtendedPatronAttributes')) {