X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fsvc_acct.pm;h=53b12f181278c5653a815fec6d1bb30971b2289f;hp=38cebc1de3726be7b5729af41ac3170dbfea5685;hb=4b147e668c23fd3011885ed94d84f4f3bb27c71f;hpb=7c08f01e1a05fe4bab903bd44277b5c3784aebc5 diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 38cebc1de..53b12f181 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -2686,6 +2686,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'); }