[freeside-commits] freeside/httemplate/edit svc_acct.cgi,1.32,1.33
Ivan,,,
ivan at wavetail.420.am
Wed Sep 7 05:48:26 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv24256
Modified Files:
svc_acct.cgi
Log Message:
fix silly bug sizing username field when adding an account (and usernamemax is not set)
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_acct.cgi,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- svc_acct.cgi 7 Sep 2005 12:44:59 -0000 1.32
+++ svc_acct.cgi 7 Sep 2005 12:48:24 -0000 1.33
@@ -96,8 +96,10 @@
$password = '';
}
-my $ulen = $conf->config('usernamemax')
- || dbdef->table('svc_acct')->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;
More information about the freeside-commits
mailing list