diff options
author | Mark Wells <mark@freeside.biz> | 2016-03-08 13:23:35 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-03-08 13:24:07 -0800 |
commit | 128a2b47ce0fb1c37013cb3b56213e2b64b25644 (patch) | |
tree | 54700e34f9ecb9305c256b6654472512f7c2fd83 /FS/FS/svc_acct.pm | |
parent | a46fd8d22c2af263e8ab10c496f5bfa8cb0c5c88 (diff) |
option to limit the set of characters in random passwords, #40792
Diffstat (limited to 'FS/FS/svc_acct.pm')
-rw-r--r-- | FS/FS/svc_acct.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 8283e6f..b4db082 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -93,12 +93,11 @@ FS::UID->install_callback( sub { $smtpmachine = $conf->config('smtpmachine'); $radius_password = $conf->config('radius-password') || 'Password'; $radius_ip = $conf->config('radius-ip') || 'Framed-IP-Address'; - @pw_set = ( 'A'..'Z' ) if $conf->exists('password-generated-allcaps'); + @pw_set = FS::svc_acct->pw_set; } ); @saltset = ( 'a'..'z' , 'A'..'Z' , '0'..'9' , '.' , '/' ); -@pw_set = ( 'a'..'z', 'A'..'Z', '0'..'9', '(', ')', '#', '.', ',' ); sub _cache { my $self = shift; |