X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FPassword_Mixin.pm;h=b80708116a29f87f5ce1a4f59b5812d7690be996;hb=06b3cebdee3d838cf25d51b5bd5668b47fec7a4e;hp=7f5484cc3b9c38ad4cdb8c3d7e52ffc5cf6aa76d;hpb=a6278360ced92d64a69a137494432d5b58a171ee;p=freeside.git diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 7f5484cc3..b80708116 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -54,9 +54,9 @@ sub is_password_allowed { 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