summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-13 09:24:58 +0200
committerMinteck <contact@minteck.org>2022-04-13 09:24:58 +0200
commit43e56ef79068c2cfa2f583fb5013eaa3f3a63122 (patch)
tree541c8f15bbe1ad710f32746312d9395211c279a9
parent868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4 (diff)
downloadsession-trunk.tar.gz
session-trunk.tar.bz2
session-trunk.zip
Attempt 5 at fixing broken sessionHEADtrunk
-rw-r--r--oauth/embed/index.php4
-rwxr-xr-xoauth/index.php4
2 files changed, 0 insertions, 8 deletions
diff --git a/oauth/embed/index.php b/oauth/embed/index.php
index 179a3e1..a4f77e6 100644
--- a/oauth/embed/index.php
+++ b/oauth/embed/index.php
@@ -42,10 +42,6 @@ if (isset($result["access_token"])) {
$result = json_decode($result, true);
$token = bin2hex(random_bytes(32));
- $result["login"] = $result["preferred_username"];
- $result["name_internal"] = $result["name"];
- $result["name"] = $result["family_name"] . " " . $result["given_name"];
- $result["id"] = $result["sub"];
file_put_contents("/mnt/familine/private/tokens/" . $token, json_encode($result));
setcookie("FL_SESSION_TOKEN", $token, 0, "/", "." . $_CONFIG["Global"]["cdn"], true, true);
diff --git a/oauth/index.php b/oauth/index.php
index ed8d509..4a36e39 100755
--- a/oauth/index.php
+++ b/oauth/index.php
@@ -42,10 +42,6 @@ if (isset($result["access_token"])) {
$result = json_decode($result, true);
$token = bin2hex(random_bytes(32));
- $result["login"] = $result["preferred_username"];
- $result["name_internal"] = $result["name"];
- $result["name"] = $result["family_name"] . " " . $result["given_name"];
- $result["id"] = $result["sub"];
file_put_contents("/mnt/familine/private/tokens/" . $token, json_encode($result));
setcookie("FL_SESSION_TOKEN", $token, 0, "/", "." . $_CONFIG["Global"]["domain"], true, true);