projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix silly bug sizing username field when adding an account (and usernamemax is not...
[freeside.git]
/
httemplate
/
edit
/
svc_acct.cgi
diff --git
a/httemplate/edit/svc_acct.cgi
b/httemplate/edit/svc_acct.cgi
index
f1b8b80
..
a730531
100755
(executable)
--- a/
httemplate/edit/svc_acct.cgi
+++ b/
httemplate/edit/svc_acct.cgi
@@
-96,8
+96,10
@@
if ( $svc_acct->_password ) {
$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;
my $ulen2 = $ulen+2;
my $pmax = $conf->config('passwordmax') || 8;