Skip to content

Commit 263e81b

Browse files
author
David Djian
committed
login without email, only gc_id
1 parent 6e61d35 commit 263e81b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Graphcomment.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,11 @@ public function registerUser($username, $email, $language = "en")
226226
/**
227227
* loginUser() authenticate a user and return a token to login in graphcomment.
228228
*
229-
* @param string $email
230229
* @param string $gc_id
231230
*
232231
* @return string json JWT response
233232
*/
234-
public function loginUser($email, $gc_id)
233+
public function loginUser($gc_id)
235234
{
236235
$client = new Client();
237236
$res = $client->request('POST', $this->getDir() . '/users/loginSdk',
@@ -240,7 +239,6 @@ public function loginUser($email, $gc_id)
240239
'Authorization' => 'JWT ' . $this->getToken()
241240
],
242241
'form_params' => [
243-
'email' => $email,
244242
'gc_id' => $gc_id
245243
],
246244
'http_errors' => false

0 commit comments

Comments
 (0)