diff options
-rw-r--r-- | FS/FS/Password_Mixin.pm | 2 | ||||
-rw-r--r-- | FS/FS/svc_acct.pm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 3dd9ce4b0..122e3fd83 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -46,7 +46,7 @@ sub is_password_allowed { # basic checks using Data::Password; # options for Data::Password $DICTIONARY = 0; # minimum length of disallowed words, false value disables dictionary checking - $MINLEN = $conf->config('passwordmin') || 6; + $MINLEN = $conf->config('passwordmin') || 8; $MAXLEN = $conf->config('passwordmax') || 12; $GROUPS = 4; # must have all 4 'character groups': numbers, symbols, uppercase, lowercase # other options use the defaults listed below: diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 93659f98f..b7967ae36 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -67,11 +67,11 @@ FS::UID->install_callback( sub { @shells = $conf->config('shells'); $usernamemin = $conf->config('usernamemin') || 2; $usernamemax = $conf->config('usernamemax'); - $passwordmin = $conf->config('passwordmin'); # || 6; - #blank->6, keep 0 + $passwordmin = $conf->config('passwordmin'); + #blank->8, keep 0 $passwordmin = ( defined($passwordmin) && $passwordmin =~ /\d+/ ) ? $passwordmin - : 6; + : 8; $passwordmax = $conf->config('passwordmax') || 12; $username_letter = $conf->exists('username-letter'); $username_letterfirst = $conf->exists('username-letterfirst'); |