projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#42235: Strict password requirments are not disabled for signup portal [respects...
[freeside.git]
/
FS
/
FS
/
Password_Mixin.pm
diff --git
a/FS/FS/Password_Mixin.pm
b/FS/FS/Password_Mixin.pm
index
7f5484c
..
b807081
100644
(file)
--- 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;
}
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;
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
# basic checks using Data::Password;
# options for Data::Password