From: Jonathan Prykop Date: Thu, 28 Apr 2016 20:06:14 +0000 (-0500) Subject: RT#42235: Strict password requirments are not disabled for signup portal X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a6278360ced92d64a69a137494432d5b58a171ee RT#42235: Strict password requirments are not disabled for signup portal --- diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index fc2e03e89..7f5484cc3 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -55,7 +55,8 @@ sub is_password_allowed { $cust_main = $cust_pkg->cust_main if $cust_pkg; } warn "is_password_allowed: no customer could be identified" if !$cust_main; - return '' if $cust_main && $conf->config_bool('password-insecure', $cust_main->agentnum); + my $agentnum = $cust_main ? $cust_main->agentnum : undef; #selfservice signup has non-inserted pkg, no workaround + return '' if $conf->config_bool('password-insecure', $agentnum); # basic checks using Data::Password; # options for Data::Password