From 11184663adedde44e4223a3615ecbd46d8ce56d0 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 7 Feb 2018 18:11:06 +0700 Subject: [PATCH] Change expected response when call sing in request --- CmsRestClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CmsRestClient.php b/CmsRestClient.php index 2f24b9b..87e1d01 100644 --- a/CmsRestClient.php +++ b/CmsRestClient.php @@ -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; } -} \ No newline at end of file +}