X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Frandom_pass.html;h=3a632b9af3b326950c6edd2820a623bc1c80fce5;hb=c2dbe36096332d1e09bc58d7d9903e05247f0c9b;hp=b215b77d998b8fa0022df2caf342d1e72f95ddca;hpb=f3e0ac2b009c4edd5692cb587ff709dac2223ebe;p=freeside.git diff --git a/httemplate/elements/random_pass.html b/httemplate/elements/random_pass.html index b215b77d9..3a632b9af 100644 --- a/httemplate/elements/random_pass.html +++ b/httemplate/elements/random_pass.html @@ -1,17 +1,38 @@ - + <%init> my $id = shift; my $label = shift || 'Generate'; +my $submitid = shift; +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); +