RT# 80898 - V3 fix for new configuration. set to section billing.
[freeside.git] / FS / FS / ClientAPI / MyAccount / contact.pm
index 009658d..d78c234 100644 (file)
@@ -32,6 +32,8 @@ sub contact_passwd {
   $error = 'Password too long.'
     if length($p->{'new_password'}) > ($conf->config('passwordmax') || 8);
 
+  $error ||= $contact->is_password_allowed($p->{'new_password'});
+
   $error ||= $contact->change_password($p->{'new_password'});
 
   return { 'error' => $error };