summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-04-28 15:43:58 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-04-28 15:43:58 -0500
commit09ccfcf59c37593980fa4a0ec2774f8094f77f8f (patch)
tree4406b2ce06a767b8f36b701bc55f5428dfb89735 /FS
parenta6278360ced92d64a69a137494432d5b58a171ee (diff)
RT#42235: Strict password requirments are not disabled for signup portal [undid previous, working on better way]
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Password_Mixin.pm3
1 files changed, 1 insertions, 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