Detailed login errors
This commit is contained in:
@ -42,7 +42,9 @@ class Login
|
|||||||
$body = $response->getBody()->getContents();
|
$body = $response->getBody()->getContents();
|
||||||
$data = json_decode($body, true);
|
$data = json_decode($body, true);
|
||||||
if (!key_exists('token', $data)) {
|
if (!key_exists('token', $data)) {
|
||||||
$this->logger->error('Token not found');
|
$this->logger->error('Token not found', [
|
||||||
|
'body' => $body
|
||||||
|
]);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
file_put_contents($this->tokenFilename, $data['token']);
|
file_put_contents($this->tokenFilename, $data['token']);
|
||||||
|
Reference in New Issue
Block a user