X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FClientAPI%2FMyAccount%2Fcontact.pm;h=dd3a40b9268e55cc7a4bb5ac2528c8d807210c72;hb=8b4fe72cbd3b29445e336cc3e8cc5dbf5ff02185;hp=ff29079c7b4afcab5704949a652450a00774c5ff;hpb=ec2f19b4484371dff04ec4a5313c7b7d2359cca8;p=freeside.git diff --git a/FS/FS/ClientAPI/MyAccount/contact.pm b/FS/FS/ClientAPI/MyAccount/contact.pm index ff29079c7..dd3a40b92 100644 --- a/FS/FS/ClientAPI/MyAccount/contact.pm +++ b/FS/FS/ClientAPI/MyAccount/contact.pm @@ -26,12 +26,9 @@ sub contact_passwd { my $error = ''; - # use these svc_acct length restrictions?? - my $conf = new FS::Conf; - $error = 'Password too short.' - if length($p->{'new_password'}) < ($conf->config('passwordmin') || 6); - $error = 'Password too long.' - if length($p->{'new_password'}) > ($conf->config('passwordmax') || 8); + # length checks now in is_password_allowed + + $error ||= $contact->is_password_allowed($p->{'new_password'}); $error ||= $contact->change_password($p->{'new_password'});