diff --git a/freebox/utils/RestAuth.php b/freebox/utils/RestAuth.php index 280a1eb..b2f68dc 100644 --- a/freebox/utils/RestAuth.php +++ b/freebox/utils/RestAuth.php @@ -63,8 +63,8 @@ class RestAuth extends alphayax\utils\Rest { */ protected function checkResponse(){ $response = $this->getCurlResponse(); - if( false === $response->success){ - throw new \Exception( $response->msg); + if( false === $response['success']){ + throw new \Exception( $response['success']); } }