Merge pull request #39 from unraid/improve/graph-apikey

improve: adds apikey to state.php
This commit is contained in:
Eric Schultz
2020-12-02 14:45:46 -06:00
committed by GitHub

View File

@@ -112,6 +112,7 @@ $arr['registered'] = empty($remote['apikey']) || empty($var['regFILE']) ? 0 : 1;
$arr['username'] = $remote['username'];
$arr['avatar'] = $remote['avatar'];
$arr['locale'] = $_SESSION['locale'] ? $_SESSION['locale'] : 'en_US';
$arr['apikey'] = $remote['apikey'];
echo json_encode($arr);
?>