X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_acct.cgi;h=a730531f53f5e63b3c534295adfd2303c20d450a;hb=598102bce2442157492847c7bf43abf8140edf9f;hp=f1b8b800b3d6120be05abf387e898f9898f6d442;hpb=eb9668a6f3181ee02cb335272c5ee4616e61fd09;p=freeside.git diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index f1b8b800b..a730531f5 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -96,8 +96,10 @@ if ( $svc_acct->_password ) { $password = ''; } -my $ulen = $conf->config('usernamemax') - || $svc_acct->dbdef_table->column('username')->length; +my $ulen = + $conf->exists('usernamemax') + ? $conf->config('usernamemax') + : dbdef->table('svc_acct')->column('username')->length; my $ulen2 = $ulen+2; my $pmax = $conf->config('passwordmax') || 8;