diff options
author | jeff <jeff> | 2007-04-08 01:18:55 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-04-08 01:18:55 +0000 |
commit | 9ac41aaba25e25fe2a9bf14c787e9a66f259650d (patch) | |
tree | ebd0a9c68888786b246cd6fcb0c1f56b89051e10 /FS | |
parent | 02dece513b037418b1d9c74c2d627501f6a31262 (diff) |
configuration option to have generated passwords be all caps (backport)
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rw-r--r-- | FS/FS/svc_acct.pm | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index ae5b69e7f..108062a3a 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2056,6 +2056,13 @@ httemplate/docs/config.html 'type' => 'checkbox', }, + { + 'key' => 'password-generated-allcaps', + 'section' => 'password', + 'description' => 'Causes passwords automatically generated to consist entirely of capital letters', + 'type' => 'checkbox', + }, + ); 1; diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 920b6b869..2ee8c5af0 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -102,6 +102,7 @@ $FS::UID::callback{'FS::svc_acct'} = 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'); }; @saltset = ( 'a'..'z' , 'A'..'Z' , '0'..'9' , '.' , '/' ); |