<% ntable("#cccccc") %> Username MAXLENGTH = <% $ulen %> > Domain Password MAXLENGTH = <% $passwordmax %>> % unless ( $opt{'password_verify'} ) { (blank to generate) % } % if ( $opt{'password_verify'} ) { Re-enter Password MAXLENGTH = <% $passwordmax %>> % } % if ( $conf->exists('security_phrase') ) { Security Phrase % } else { % } % if ( $conf->exists('svc_acct-disable_access_number') ) { % } else { Access number %# XXX should gain "area code" selection and labels on the dropdowns <% 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;