diff options
author | Mark Wells <mark@freeside.biz> | 2016-02-09 10:56:13 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-02-09 10:56:13 -0800 |
commit | 776b6c8e2c064b42b89e22e2d5d01afb65dd8bb3 (patch) | |
tree | ee86f8ad92c3573880258c645a5b9ea9763cb4e2 /FS | |
parent | 9d0796956b83a47a3258e1d388289f6b59f7444d (diff) |
Revert "make password-insecure option work when adding a new svc_acct, #40236"
This reverts commit 9d0796956b83a47a3258e1d388289f6b59f7444d.
- password-insecure option is 3.x only.
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Password_Mixin.pm | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 47290b5fa..3fb787c47 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -43,16 +43,6 @@ sub is_password_allowed { my $self = shift; my $password = shift; - my $cust_main = $self->cust_main; - - # workaround for non-inserted services - if ( !$cust_main and $self->get('pkgnum') ) { - my $cust_pkg = FS::cust_pkg->by_key($self->get('pkgnum')); - $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); - # basic checks using Data::Password; # options for Data::Password $DICTIONARY = 4; # minimum length of disallowed words |