fix silly bug sizing username field when adding an account (and username max is not...
authorivan <ivan>
Wed, 7 Sep 2005 12:44:59 +0000 (12:44 +0000)
committerivan <ivan>
Wed, 7 Sep 2005 12:44:59 +0000 (12:44 +0000)
httemplate/edit/svc_acct.cgi

index f1b8b80..57227d4 100755 (executable)
@@ -97,7 +97,7 @@ if ( $svc_acct->_password ) {
 }
 
 my $ulen = $conf->config('usernamemax')
-           || $svc_acct->dbdef_table->column('username')->length;
+           || dbdef->table('svc_acct')->column('username')->length;
 my $ulen2 = $ulen+2;
 
 my $pmax = $conf->config('passwordmax') || 8;