fix: stop using username to determine reg status

Use apikey to determine if you're signed in. That way if your API key is empty it won't attempt to connect / check cloud.
This commit is contained in:
Eli Bosley
2023-09-29 15:40:38 -04:00
committed by GitHub
parent ed8d69b27f
commit f4d6755f20

View File

@@ -28,7 +28,7 @@ $configErrorEnum = [
"withdrawn" => 'WITHDRAWN',
];
$registered = !empty($myservers['remote']['username']) && $connectPluginInstalled;
$registered = !empty($myservers['remote']['apikey']) && $connectPluginInstalled;
$serverState = [
"apiKey" => $myservers['upc']['apikey'] ?? '',