improve: adds apikey to state.php

This commit is contained in:
Zack Spear
2020-12-01 16:39:11 -08:00
parent 06766bb10e
commit 323ad55ec4

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);
?>