Skip to content

Commit

Permalink
Change expected response when call sing in request
Browse files Browse the repository at this point in the history
  • Loading branch information
nilov authored Feb 7, 2018
1 parent 1464c2f commit 1118466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CmsRestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ private function singInRequest()
$token = null;
if ($response->getStatusCode() == 200) {
$body = json_decode($response->getBody(), true);
$token = isset($body['Token']) ? $body['Token'] : null;
$token = isset($body['token']) ? $body['token'] : null;
}

return $token;
}
}
}

0 comments on commit 1118466

Please sign in to comment.