summaryrefslogtreecommitdiff
path: root/login/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-13 09:21:05 +0200
committerMinteck <contact@minteck.org>2022-04-13 09:21:05 +0200
commit2f411b9e0f326bc3db3d9927ed4b441e638fde9d (patch)
treeda05f8053fd0ce8f3d7243bd6861fc8854b599b8 /login/index.php
parent026165618d2cbd72333d52ec9809e09d10961e58 (diff)
downloadsession-2f411b9e0f326bc3db3d9927ed4b441e638fde9d.tar.gz
session-2f411b9e0f326bc3db3d9927ed4b441e638fde9d.tar.bz2
session-2f411b9e0f326bc3db3d9927ed4b441e638fde9d.zip
Attempt 3 at fixing broken session
Diffstat (limited to 'login/index.php')
-rwxr-xr-xlogin/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/index.php b/login/index.php
index 71a3e2d..0e607d1 100755
--- a/login/index.php
+++ b/login/index.php
@@ -3,5 +3,5 @@
$_CONFIG = json_decode(file_get_contents("/mnt/familine/private/FamilineConfig.json"), true);
setcookie("_auth_callback", $_GET['r'], 0, "/");
-header("Location: https://" . $_CONFIG["Global"]["federation"] . "/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents("/mnt/familine/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://session." . $_CONFIG["Global"]["domain"] . "/oauth&scope=profile&request_credentials=default&access_type=offline");
+header("Location: https://" . $_CONFIG["Global"]["federation"] . "/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents("/mnt/familine/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://session." . $_CONFIG["Global"]["domain"] . "/oauth&scope=Hub&request_credentials=default&access_type=offline");
die();