diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-20 15:23:18 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-20 15:23:18 -0800 |
commit | 8248d1c6ba608044c8f66a53daab254f476d5c6d (patch) | |
tree | be7db5fb24611a6c852359654e5cf68277ba63d2 /FS/FS/Password_Mixin.pm | |
parent | 42ebaebeafc054ca0c3a924efd7a53154fdcf35e (diff) |
remove the config option, #32456
Diffstat (limited to 'FS/FS/Password_Mixin.pm')
-rw-r--r-- | FS/FS/Password_Mixin.pm | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 393b41629..990f73595 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -7,13 +7,7 @@ use Authen::Passphrase; use Authen::Passphrase::BlowfishCrypt; # https://rt.cpan.org/Ticket/Display.html?id=72743 -our $DEBUG = 1; -our $conf; -FS::UID->install_callback( sub { - $conf = FS::Conf->new; - # this is safe - #eval "use Authen::Passphrase::BlowfishCrypt;"; -}); +our $DEBUG = 0; our $me = '[' . __PACKAGE__ . ']'; @@ -46,9 +40,10 @@ sub is_password_allowed { # check length and complexity here - if ( $conf->config('password-no_reuse') =~ /^(\d+)$/ ) { + my $no_reuse = 3; + # allow override here if we really must - my $no_reuse = $1; + if ( $no_reuse > 0 ) { # "the last N" passwords includes the current password and the N-1 # passwords before that. |