diff --git a/auth/linkedin/callback.php b/auth/linkedin/callback.php index 6c3a0a4..e1008cd 100644 --- a/auth/linkedin/callback.php +++ b/auth/linkedin/callback.php @@ -61,8 +61,8 @@ function getInfo($access_token) 'Authorization: Bearer ' . $data['access_token'], ]); - //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 5); diff --git a/auth/linkedin/index.php b/auth/linkedin/index.php index 4d8bdac..e4849a9 100644 --- a/auth/linkedin/index.php +++ b/auth/linkedin/index.php @@ -16,6 +16,7 @@ $_SESSION['state'] = $state; if (isset($_SESSION['info'])) { dump($_SESSION['info']); + unset($_SESSION['info']); } function getCodeUrl()