Update Authorize

This commit is contained in:
alphayax 2016-06-05 21:47:32 +02:00
parent 441fb84ecd
commit d4349a2b4c
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class Authorize extends Service {
]);
$response = $rest->getCurlResponse();
if( ! $response['success']){
if( ! $rest->getSuccess()){
$this->application->getLogger()->addCritical( 'Freebox Error : '. $response['error_code'] .' - '. $response['msg']);
throw new \Exception( $response['msg'], $response['error_code']);
}
@ -96,7 +96,7 @@ class Authorize extends Service {
$rest = $this->getService( self::API_LOGIN_AUTHORIZE . $this->track_id);
$rest->GET();
$result = $rest->getCurlResponse()['result'];
$result = $rest->getResult();
$this->status = $result['status'];
$this->challenge = $result['challenge'];