From 09ccfcf59c37593980fa4a0ec2774f8094f77f8f Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 28 Apr 2016 15:43:58 -0500 Subject: [PATCH] RT#42235: Strict password requirments are not disabled for signup portal [undid previous, working on better way] --- FS/FS/Password_Mixin.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 7f5484cc3..fc2e03e89 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -55,8 +55,7 @@ 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; - 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 -- 2.11.0