diff options
author | RaindropsSys <contact@minteck.org> | 2023-07-02 16:08:55 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-07-02 16:08:55 +0200 |
commit | c17289ab06c032026ef467d835543d82a098ecc1 (patch) | |
tree | 6c1514cddaac9de06d12e95b99b5fb9889faa855 | |
parent | 2dff0cc72ca7ce899351f46baac6965787d2fbf5 (diff) | |
download | synccenter-c17289ab06c032026ef467d835543d82a098ecc1.tar.gz synccenter-c17289ab06c032026ef467d835543d82a098ecc1.tar.bz2 synccenter-c17289ab06c032026ef467d835543d82a098ecc1.zip |
Updated 2 files (automated)
-rw-r--r-- | auth/callback/index.php | 6 | ||||
-rw-r--r-- | auth/init/index.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/auth/callback/index.php b/auth/callback/index.php index bd96e0a..228d35d 100644 --- a/auth/callback/index.php +++ b/auth/callback/index.php @@ -1,7 +1,7 @@ <?php $app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true); -$server = "auth.equestria.horse"; +$server = "account.equestria.dev"; header("Content-Type: text/plain"); @@ -18,7 +18,7 @@ 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://backups.equestria.dev/auth/callback") . "&code=" . $_GET['code']); +curl_setopt($crl, CURLOPT_POSTFIELDS, "grant_type=authorization_code&redirect_uri=" . urlencode("https://backups.equestria.horse/auth/callback") . "&code=" . $_GET['code']); $result = curl_exec($crl); $result = json_decode($result, true); @@ -38,7 +38,7 @@ if (isset($result["access_token"])) { $result = json_decode($result, true); if (!in_array($result["id"], $app["allowed"])) { - header("Location: https://equestria.horse"); + header("Location: https://equestria.dev"); die(); } diff --git a/auth/init/index.php b/auth/init/index.php index b6a99b1..1a606b2 100644 --- a/auth/init/index.php +++ b/auth/init/index.php @@ -1,7 +1,7 @@ <?php $app = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true); -$server = "auth.equestria.horse"; +$server = "account.equestria.dev"; -header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . $app["id"] . "&response_type=code&redirect_uri=https://backups.equestria.dev/auth/callback&scope=Hub&request_credentials=default&access_type=offline"); +header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . $app["id"] . "&response_type=code&redirect_uri=https://backups.equestria.horse/auth/callback&scope=Hub&request_credentials=default&access_type=offline"); die(); |