From 868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 13 Apr 2022 09:23:39 +0200 Subject: Attempt 4 at fixing broken session --- oauth/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oauth/index.php') diff --git a/oauth/index.php b/oauth/index.php index 6c6447f..ed8d509 100755 --- a/oauth/index.php +++ b/oauth/index.php @@ -19,9 +19,9 @@ curl_setopt($crl, CURLOPT_HTTPHEADER, [ "Content-Type: application/x-www-form-urlencoded", "Accept: application/json" ]); -curl_setopt($crl, CURLOPT_POSTFIELDS, "grant_type=authorization_code&redirect_uri=" . urlencode("https://session." . $_CONFIG["Global"]["domain"] . "/oauth/?r=" . $_GET['r']) . "&code=" . $_GET['code']); +curl_setopt($crl, CURLOPT_POSTFIELDS, "grant_type=authorization_code&redirect_uri=" . urlencode("https://session." . $_CONFIG["Global"]["domain"] . "/oauth") . "&code=" . $_GET['code']); -var_dump("grant_type=authorization_code&redirect_uri=" . urlencode("https://" . $_CONFIG["Global"]["domain"] . "/oauth/?r=" . $_GET['r']) . "&code=" . $_GET['code']); +var_dump("grant_type=authorization_code&redirect_uri=" . urlencode("https://" . $_CONFIG["Global"]["domain"] . "/oauth") . "&code=" . $_GET['code']); $result = curl_exec($crl); var_dump($result); $result = json_decode($result, true); -- cgit