Skip to content

Commit 96ad4cf

Browse files
committed
Add workaround for login process
1 parent b939b84 commit 96ad4cf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Instagram/Auth/Login.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ public function execute($username, $password)
5555

5656
$query = $this->client->request('POST', TransportFeed::AUTH_URL, [
5757
'form_params' => [
58-
'username' => $username,
59-
'password' => $password,
58+
'username' => $username,
59+
'enc_password' => '#PWD_INSTAGRAM_BROWSER:0:' . time() . ':' . $password,
6060
],
6161
'headers' => [
6262
'cookie' => 'ig_cb=1; csrftoken=' . $data->config->csrf_token,
6363
'referer' => TransportFeed::BASE_URL,
6464
'x-csrftoken' => $data->config->csrf_token,
6565
'user-agent' => TransportFeed::USER_AGENT,
6666
],
67-
'cookies' => $cookieJar
67+
'cookies' => $cookieJar
6868
]);
6969

7070
if ($query->getStatusCode() !== 200) {
@@ -78,4 +78,4 @@ public function execute($username, $password)
7878
}
7979
}
8080
}
81-
}
81+
}

0 commit comments

Comments
 (0)