From: jeff Date: Sun, 8 Apr 2007 01:18:55 +0000 (+0000) Subject: configuration option to have generated passwords be all caps (backport) X-Git-Tag: freeside_1_7_3rc1~487 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=9ac41aaba25e25fe2a9bf14c787e9a66f259650d;p=freeside.git configuration option to have generated passwords be all caps (backport) --- 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' , '.' , '/' );