mirror of
https://github.com/unraid/api.git
synced 2026-01-01 22:20:05 -06:00
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:
@@ -28,7 +28,7 @@ $configErrorEnum = [
|
||||
"withdrawn" => 'WITHDRAWN',
|
||||
];
|
||||
|
||||
$registered = !empty($myservers['remote']['username']) && $connectPluginInstalled;
|
||||
$registered = !empty($myservers['remote']['apikey']) && $connectPluginInstalled;
|
||||
|
||||
$serverState = [
|
||||
"apiKey" => $myservers['upc']['apikey'] ?? '',
|
||||
|
||||
Reference in New Issue
Block a user