Skip to content

Commit ab51bac

Browse files
Update lib/HTTP.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sebastian Sterk <7263970+sebastiansterk@users.noreply.github.com>
1 parent 2e95772 commit ab51bac

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/HTTP.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,13 @@ public function sendUserData($user, $password) {
5656
$client = $this->httpClientService->newClient();
5757

5858
$response = $client->post($this->authenticationEndpoint, [
59-
'form_params' => [
59+
'body' => json_encode([
6060
'accessKey' => $this->accessKey,
6161
'user' => $user,
6262
'password' => $password
63+
]),
64+
'headers' => [
65+
'Content-Type' => 'application/json'
6366
],
6467
'timeout' => 10,
6568
]);

0 commit comments

Comments
 (0)