diff options
-rw-r--r-- | FS/FS/API.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/API.pm b/FS/FS/API.pm index 9b5783a46..cc5f6092a 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'} |