[freeside-commits] branch master updated. 2cc8d4007576bfd2efd294fe19f5c3885c5abd8e

Mitch Jackson mitch at freeside.biz
Sun Jun 10 21:27:00 PDT 2018


The branch, master has been updated
       via  2cc8d4007576bfd2efd294fe19f5c3885c5abd8e (commit)
      from  2a557042a62c71b2bcee3d4d2b7e6c79bc52e67a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2cc8d4007576bfd2efd294fe19f5c3885c5abd8e
Author: Mitch Jackson <mitch at freeside.biz>
Date:   Sun Jun 10 23:25:41 2018 -0500

    RT# 32233 Mask ssn and stateid in selfservice

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 {
                     );
 
 }
-
-

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm                      | 5 ++++-
 fs_selfservice/FS-SelfService/cgi/selfservice.cgi | 9 +++++----
 2 files changed, 9 insertions(+), 5 deletions(-)




More information about the freeside-commits mailing list