diff options
author | Minteck <contact@minteck.org> | 2022-04-13 09:24:58 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-13 09:24:58 +0200 |
commit | 43e56ef79068c2cfa2f583fb5013eaa3f3a63122 (patch) | |
tree | 541c8f15bbe1ad710f32746312d9395211c279a9 | |
parent | 868b4f783ae13eeb9fe605beb1a3fef0c6f88ab4 (diff) | |
download | session-trunk.tar.gz session-trunk.tar.bz2 session-trunk.zip |
-rw-r--r-- | oauth/embed/index.php | 4 | ||||
-rwxr-xr-x | oauth/index.php | 4 |
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);
|