summaryrefslogtreecommitdiff
path: root/httemplate/edit/svc_phone.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-03-10 22:28:34 -0700
committerIvan Kohler <ivan@freeside.biz>2013-03-10 22:28:34 -0700
commit57c5cf47f41739b57c563ddac09d0bd49d6d67b4 (patch)
tree187f1fdd593bbaeea03dfb2bd473a4dfe502f775 /httemplate/edit/svc_phone.cgi
parentf37b4c3e04f6dfc56ba967e270b5b49edafe81f6 (diff)
hide svc_phone.sip_password like svc_acct._password unless showpasswords config is on, RT#20862
Diffstat (limited to 'httemplate/edit/svc_phone.cgi')
-rw-r--r--httemplate/edit/svc_phone.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/svc_phone.cgi b/httemplate/edit/svc_phone.cgi
index 8ee71b82d..13bbe82a1 100644
--- a/httemplate/edit/svc_phone.cgi
+++ b/httemplate/edit/svc_phone.cgi
@@ -6,6 +6,11 @@
my( $cgi, $svc_x, $part_svc, $cust_pkg, $fields, $opt ) = @_;
$svc_x->locationnum($cust_pkg->locationnum) if $cust_pkg;
},
+ 'svc_edit_callback' => sub {
+ my( $cgi, $svc_x, $part_svc, $cust_pkg, $fields, $opt) = @_;
+ my $conf = new FS::Conf;
+ $svc_x->sip_password('*HIDDEN*') unless $conf->exists('showpasswords');
+ },
&>
<%init>