diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-06-10 23:25:41 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-06-10 23:25:41 -0500 |
commit | 2cc8d4007576bfd2efd294fe19f5c3885c5abd8e (patch) | |
tree | 53d5d8d364e9eac3d84806546bc22a1196841e31 | |
parent | 2a557042a62c71b2bcee3d4d2b7e6c79bc52e67a (diff) |
RT# 32233 Mask ssn and stateid in selfservice
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 5 | ||||
-rwxr-xr-x | fs_selfservice/FS-SelfService/cgi/selfservice.cgi | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index e4fef9554..ae0fa614c 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -630,6 +630,10 @@ sub customer_info_short { for (@cust_main_editable_fields) { $return{$_} = $cust_main->get($_); } + + $return{ss} = $cust_main->masked('ss') if $p->{mask_ss}; + $return{stateid} = $cust_main->masked('stateid') if $p->{mask_stateid}; + #maybe a little more expensive, but it should be cached by now for (@location_editable_fields) { $return{$_} = $cust_main->bill_location->get($_) @@ -3900,4 +3904,3 @@ sub _custoragent_session_custnum { } 1; - diff --git a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi index 6cf264c08..161231555 100755 --- a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi +++ b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi @@ -276,8 +276,11 @@ sub change_bill { } return $payment_info if ( $payment_info->{'error'} ); - my $customer_info = - customer_info( 'session_id' => $session_id ); + my $customer_info = customer_info( + mask_ss => 1, + mask_stateid => 1, + session_id => $session_id, + ); return { %$payment_info, %$customer_info, @@ -1325,5 +1328,3 @@ sub include { ); } - - |