General cleanup/formatting

This commit is contained in:
Marcus Hill
2023-02-09 11:42:57 +00:00
parent b36719eb99
commit c219324bb8
3 changed files with 59 additions and 20 deletions

View File

@@ -60,9 +60,12 @@ if (isset($_POST['code']) && $_POST['state'] == session_id()) {
// Send request via CURL (server side) so user cannot see the client secret
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $token_grant_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query($params));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt(
$ch,
CURLOPT_POSTFIELDS,
http_build_query($params)
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
#curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // DEBUG ONLY - WAMP