X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Frandom_pass.html;h=1517a55d70e0dd6b278f15acf9a3ef6181943328;hp=b215b77d998b8fa0022df2caf342d1e72f95ddca;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=942431fdcb3803b7ef98b1be8c4dc188e1a4b5aa diff --git a/httemplate/elements/random_pass.html b/httemplate/elements/random_pass.html index b215b77d9..1517a55d7 100644 --- a/httemplate/elements/random_pass.html +++ b/httemplate/elements/random_pass.html @@ -1,17 +1,33 @@ <%init> my $id = shift; my $label = shift || 'Generate'; +my $pw_set = join('', FS::Password_Mixin->pw_set); +my $lower = join('', $pw_set =~ /[[:lower:]]/g); +my $upper = join('', $pw_set =~ /[[:upper:]]/g); +my $digit = join('', $pw_set =~ /[[:digit:]]/g); +my $punct = join('', $pw_set =~ /[[:punct:]]/g); +