[freeside-commits] branch FREESIDE_3_BRANCH updated. 3d264f58c4f538d4d62fbc8eaa252dc6c5082757

Jeremy Davis jeremyd at 420.am
Tue Feb 17 07:04:10 PST 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  3d264f58c4f538d4d62fbc8eaa252dc6c5082757 (commit)
      from  1c89c43ec24d1a69304b62e7e878077571637541 (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 3d264f58c4f538d4d62fbc8eaa252dc6c5082757
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Tue Feb 17 10:02:59 2015 -0500

    Fix backport #33252

diff --git a/FS/FS/API.pm b/FS/FS/API.pm
index 9b5783a..cc5f609 100644
--- a/FS/FS/API.pm
+++ b/FS/FS/API.pm
@@ -593,6 +593,8 @@ sub update_customer {
  my( $class, %opt ) = @_;
 
   my $conf = new FS::Conf;
+  return { 'error' => 'Incorrect shared secret' }
+    unless $opt{secret} eq $conf->config('api_shared_secret');
 
 
   my $custnum = $opt{'custnum'}

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

Summary of changes:
 FS/FS/API.pm |    2 ++
 1 file changed, 2 insertions(+)




More information about the freeside-commits mailing list