summaryrefslogtreecommitdiff
path: root/oauth/embed
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 /oauth/embed
parent868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4 (diff)
downloadsession-43e56ef79068c2cfa2f583fb5013eaa3f3a63122.tar.gz
session-43e56ef79068c2cfa2f583fb5013eaa3f3a63122.tar.bz2
session-43e56ef79068c2cfa2f583fb5013eaa3f3a63122.zip
Attempt 5 at fixing broken sessionHEADtrunk
Diffstat (limited to 'oauth/embed')
-rw-r--r--oauth/embed/index.php4
1 files changed, 0 insertions, 4 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);