summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2002-02-10 22:31:14 +0000
committerivan <ivan>2002-02-10 22:31:14 +0000
commit505345d25040f78a9fdffa5666cd6b9f41a117a5 (patch)
tree81fe27ded058a66c48f9fd20846bcd2cde276994 /httemplate/edit
parent46477667466732de54a034fae994e71f9ca62b50 (diff)
ui
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/svc_acct.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index 4bc81c9fd..e42745cf7 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -81,7 +81,8 @@ if ( $svc_acct->_password ) {
$password = '';
}
-my $ulen = $svc_acct->dbdef_table->column('username')->length;
+my $ulen = $conf->config('usernamemax')
+ || $svc_acct->dbdef_table->column('username')->length;
my $ulen2 = $ulen+2;
my $pmax = $conf->config('passwordmax') || 8;
@@ -103,7 +104,7 @@ print 'Service # '. ( $svcnum ? "<B>$svcnum</B>" : " (NEW)" ). '<BR>'.
<INPUT TYPE="hidden" NAME="svcpart" VALUE="$svcpart">
END
-print &itable("#cccccc",2), <<END;
+print &ntable("#cccccc",2), <<END;
<TR><TD>
<TR><TD ALIGN="right">Username</TD>
<TD><INPUT TYPE="text" NAME="username" VALUE="$username" SIZE=$ulen2 MAXLENGTH=$ulen></TD></TR>