my $cust_pkg = FS::cust_pkg->by_key($self->get('pkgnum'));
$cust_main = $cust_pkg->cust_main if $cust_pkg;
}
+ # selfservice signup invokes this without customer, but it checks this conf separately
warn "is_password_allowed: no customer could be identified" if !$cust_main;
- my $agentnum = $cust_main ? $cust_main->agentnum : undef; #selfservice signup has non-inserted pkg, no workaround
- return '' if $conf->config_bool('password-insecure', $agentnum);
+ return '' if $cust_main && $conf->config_bool('password-insecure', $cust_main->agentnum);
# basic checks using Data::Password;
# options for Data::Password