mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 09:39:58 -06:00
refactor: replace key don't auto check on class instantiation
This commit is contained in:
@@ -23,8 +23,6 @@ class ReplaceKey
|
||||
$this->guid = @$this->serverState['guid'] ?? null;
|
||||
$this->keyfile = @$this->serverState['keyfile'] ?? null;
|
||||
$this->regExp = @$this->serverState['regExp'] ?? null;
|
||||
|
||||
$this->check();
|
||||
}
|
||||
|
||||
private function request($url, $method, $payload = null, $headers = null)
|
||||
@@ -189,6 +187,3 @@ class ReplaceKey
|
||||
$this->installNewKey($latestKey);
|
||||
}
|
||||
}
|
||||
|
||||
// self invoke
|
||||
new ReplaceKey();
|
||||
|
||||
Reference in New Issue
Block a user