Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Fix #26 login not works
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmorbo committed Sep 19, 2022
1 parent f1dfd6c commit ffb16f2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions domru/src/Service/Domru.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ public function getAccounts(string $phone, string $loginType): ?array
]
);
$content = $response->getBody()->getContents();
$cookies = $response->getHeader('Set-Cookie');
$cookie = explode(';', $cookies[0]);

$this->logger->debug(__METHOD__.' | Headers', $response->getHeaders());
$this->logger->debug(__METHOD__.' | Content', [$content]);
Expand All @@ -122,7 +120,6 @@ public function getAccounts(string $phone, string $loginType): ?array
$data = [
'phone' => $phone,
'accounts' => $accounts,
'cookie' => $cookie[0],
];
$this->cache->set('accounts', $data, 600);
}
Expand Down

0 comments on commit ffb16f2

Please sign in to comment.