summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-04-28 15:06:14 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-04-28 15:06:14 -0500
commita6278360ced92d64a69a137494432d5b58a171ee (patch)
treec54ac7dad9697d409aee6c57e484c7b7cc1aae18
parentd39884aa7ef13f26a39e6db0c305b98aa61943e1 (diff)
RT#42235: Strict password requirments are not disabled for signup portal
-rw-r--r--FS/FS/Password_Mixin.pm3
1 files changed, 2 insertions, 1 deletions
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