From 350d21e77152b1da498ef88c1055e847420bcce1 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 23 Jun 2011 23:19:27 +0000 Subject: add svc_acct-no_edit_username config, RT#13416 --- httemplate/edit/svc_acct.cgi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 33e5d0414..230a2a58a 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -45,9 +45,14 @@ function randomPass() { <% mt('Username') |h %> - - MAXLENGTH=<% $ulen %>> - +% if ( $conf->exists('svc_acct-no_edit_username') ) { + <% $svc_acct->username() %> + +% } else { + + MAXLENGTH=<% $ulen %>> + +% } %if ( $part_svc->part_svc_column('_password')->columnflag ne 'F' ) { -- cgit v1.2.1