Re: automatic passwordgeneration

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.devel
Message-ID <[email protected]>
Hi,

could you please comment on
* which version of ISPMan this patch applies to and
* how it differs from the already existing pw generation 
(ISPMan::Utils->genPass()) in HEAD (1.3)?

Regards,
Joerg

ispman-gX/[email protected] wrote:
> Hi,
> 
> a little patch für users/add.tmpl to generate a sample password if you
> add a user.
> 
> ##########################
> *** add.tmpl    Sun Mar 27 22:29:35 2005
> --- add.tmpl.orig       Sun Mar 27 22:32:28 2005
> ***************
> *** 40,64 ****
>   <tr>
>       <td>Password </td>
>       <td> 
> !     <input  size=35 type=text name=userPassword
> !     <perl>
> !     my $crypted;
> !     my $crypted1="value='";
> !     for ($x=0;$x<8;$x++) {
> !       $crypted = rand(90);
> !       $crypted = sprintf("\%d", $crypted);
> !       if ($crypted < 65) {
> !          $crypted = rand(9)+1;
> !          $crypted = sprintf("\%d", $crypted);
> !          $crypted1 .= $crypted;
> !       } else {
> !          $crypted = sprintf("\%c", $crypted);
> !          $crypted1 .= $crypted;
> !       }
> !     }
> ! #    $crypted1 =~ tr/A-Z/a-z/;
> !     $crypted1.="'>";
> !     </perl>    </td>
>   </tr>
>   
>   <tr>
> --- 40,47 ----
>   <tr>
>       <td>Password </td>
>       <td> 
> !     <input  size=35 type=text name=userPassword value="">
> !     </td>
>   </tr>
>   
>   <tr>
> ###################
>
joerg.vcf (text/x-vcard, 134 B)
begin:vcard
fn:Joerg Delker
n:Delker;Joerg
email;internet:[email protected]
x-mozilla-html:FALSE
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.