Fix backport #33252
authorJeremy Davis <jeremyd@freeside.biz>
Tue, 17 Feb 2015 15:02:59 +0000 (10:02 -0500)
committerJeremy Davis <jeremyd@freeside.biz>
Tue, 17 Feb 2015 15:02:59 +0000 (10:02 -0500)
FS/FS/API.pm

index 9b5783a..cc5f609 100644 (file)
@@ -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'}