From 5b384602d5bc6ae8a0ae7881f4f8a4caec7dddf2 Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Wed, 13 Jun 2018 17:30:57 +0800 Subject: [PATCH] ssl --- auth/linkedin/callback.php | 4 ++-- auth/linkedin/index.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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()