summaryrefslogtreecommitdiff
path: root/Authentication/Username
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-07-11 18:54:47 +0200
committerMinteck <contact@minteck.org>2022-07-11 18:54:47 +0200
commitf70cf5893bb775625e79ed959721ede03e34a108 (patch)
treeb43b6c392d580304fb47777d240f529e92ea17b0 /Authentication/Username
parent2629b95c437cce1d331d8f4ab3a0d1ff394930a7 (diff)
downloadbits-server-mane.tar.gz
bits-server-mane.tar.bz2
bits-server-mane.zip
UpdateHEADmane
Diffstat (limited to 'Authentication/Username')
-rw-r--r--Authentication/Username/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Authentication/Username/index.php b/Authentication/Username/index.php
index 63b4aed..9a84870 100644
--- a/Authentication/Username/index.php
+++ b/Authentication/Username/index.php
@@ -5,7 +5,8 @@ header("Content-Type: application/json");
$a = [
"name" => $_PROFILE["name"],
- "id" => $_PROFILE['id']
+ "id" => $_PROFILE['id'],
+ "system" => json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Systems.json"), true)[$_PROFILE['id']],
];
die(json_encode($a)); \ No newline at end of file