RT#42235: Strict password requirments are not disabled for signup portal [respects...
[freeside.git] / FS / FS / ClientAPI / Signup.pm
index 3208396..7c70a67 100644 (file)
@@ -698,6 +698,10 @@ sub new_customer {
         map { $_ => $packet->{$_} }
           qw( username _password sec_phrase popnum domsvc ),
       };
+      
+      my $error = $svc->is_password_allowed($packet->{_password});
+      $error = '' if $conf->config_bool('password-insecure', $agentnum);
+      return { error => $error } if $error;
 
       my @acct_snarf;
       my $snarfnum = 1;