Skip to content

Commit 6688578

Browse files
committed
Post login details instead of get
Fixes #6
1 parent e3442fa commit 6688578

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Atomx/AtomxClient.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ public function login()
6767
$this->shouldSendToken = false;
6868

6969
try {
70-
$response = $this->getUrl('login', [
71-
'email' => $this->accountStore->getUsername(),
72-
'password' => $this->accountStore->getPassword()
70+
$response = $this->postUrl('login', [
71+
'json' => [
72+
'email' => $this->accountStore->getUsername(),
73+
'password' => $this->accountStore->getPassword()
74+
]
7375
]);
7476
} catch (ApiException $e) {
7577
throw new ApiException('Unable to login to API!');

0 commit comments

Comments
 (0)