diff options
| author | Jeremy Davis <jeremyd@freeside.biz> | 2015-02-17 10:02:59 -0500 |
|---|---|---|
| committer | Jeremy Davis <jeremyd@freeside.biz> | 2015-02-17 10:02:59 -0500 |
| commit | 3d264f58c4f538d4d62fbc8eaa252dc6c5082757 (patch) | |
| tree | 1da3b86bd92afb11a8f2d7c0cce8af358cc23dfb | |
| parent | 1c89c43ec24d1a69304b62e7e878077571637541 (diff) | |
Fix backport #33252
| -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'} |
