RT#29354: Password Security in Email [v3 merge]
[freeside.git] / FS / FS / svc_acct.pm
index e963c80..203150f 100644 (file)
@@ -2785,6 +2785,7 @@ sub password_svc_check {
   my ($self, $password) = @_;
   foreach my $field ( qw(username finger) ) {
     foreach my $word (split(/\W+/,$self->get($field))) {
+      next unless length($word) > 2;
       if ($password =~ /$word/i) {
         return qq(Password contains account information '$word');
       }