mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 21:16:52 +00:00
Make AIO_TOKEN an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
2d7f360706
commit
4318488937
4 changed files with 8 additions and 10 deletions
|
|
@ -13,6 +13,11 @@ class ConfigurationManager
|
|||
|
||||
private bool $noWrite = false;
|
||||
|
||||
public string $AIO_TOKEN {
|
||||
get => $this->get('AIO_TOKEN', '');
|
||||
set { $this->set('AIO_TOKEN', $value); }
|
||||
}
|
||||
|
||||
public function GetConfig() : array
|
||||
{
|
||||
if ($this->config === [] && file_exists(DataConst::GetConfigFile()))
|
||||
|
|
@ -28,10 +33,6 @@ class ConfigurationManager
|
|||
return $this->GetConfig()['password'];
|
||||
}
|
||||
|
||||
public function GetToken() : string {
|
||||
return $this->GetConfig()['AIO_TOKEN'];
|
||||
}
|
||||
|
||||
public function SetPassword(string $password) : void {
|
||||
$config = $this->GetConfig();
|
||||
$config['password'] = $password;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue