diff options
author | Minteck <contact@minteck.org> | 2022-04-13 09:23:39 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-13 09:23:39 +0200 |
commit | 868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4 (patch) | |
tree | 72ce669889f450ddaca0b44c04241b7ec60dcd99 /oauth/embed/index.php | |
parent | 2f411b9e0f326bc3db3d9927ed4b441e638fde9d (diff) | |
download | session-868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4.tar.gz session-868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4.tar.bz2 session-868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4.zip |
Attempt 4 at fixing broken session
Diffstat (limited to 'oauth/embed/index.php')
-rw-r--r-- | oauth/embed/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oauth/embed/index.php b/oauth/embed/index.php index 663d5bc..179a3e1 100644 --- a/oauth/embed/index.php +++ b/oauth/embed/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/embed") . "&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/embed") . "&code=" . $_GET['code']);
$result = curl_exec($crl);
var_dump($result);
$result = json_decode($result, true);
|