<% ntable("#cccccc") %> Username MAXLENGTH = <% $ulen %> > Domain Password MAXLENGTH = <% $passwordmax %>> (blank to generate) Access number <% FS::svc_acct_pop::popselector($opt{'popnum'}) %> <%init> #use FS::svc_acct_pop; my( %opt ) = @_; my $conf = new FS::Conf; #false laziness: (mostly) copied from edit/svc_acct.cgi #$ulen = $svc_acct->dbdef_table->column('username')->length; my $ulen = dbdef->table('svc_acct')->column('username')->length; my $ulen2 = $ulen+2; my $passwordmax = $conf->config('passwordmax') || 8; my $pmax2 = $passwordmax + 2;