Camelize property AIO_TOKEN => aioToken

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-23 17:12:45 +01:00
parent 27fd1e82ab
commit dd5d51cb2a
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ readonly class AuthManager {
}
public function CheckToken(string $token) : bool {
return hash_equals($this->configurationManager->AIO_TOKEN, $token);
return hash_equals($this->configurationManager->aioToken, $token);
}
public function SetAuthState(bool $isLoggedIn) : void {

View file

@ -208,7 +208,7 @@ readonly class DockerController {
}
public function startTopContainer(bool $pullImage) : void {
$this->configurationManager->AIO_TOKEN = bin2hex(random_bytes(24));
$this->configurationManager->aioToken = bin2hex(random_bytes(24));
// Stop domaincheck since apache would not be able to start otherwise
$this->StopDomaincheckContainer();

View file

@ -13,7 +13,7 @@ class ConfigurationManager
private bool $noWrite = false;
public string $AIO_TOKEN {
public string $aioToken {
get => $this->get('AIO_TOKEN', '');
set { $this->set('AIO_TOKEN', $value); }
}
@ -1045,7 +1045,7 @@ class ConfigurationManager
return match ($placeholder) {
'NC_DOMAIN' => $this->domain,
'NC_BASE_DN' => $this->GetBaseDN(),
'AIO_TOKEN' => $this->AIO_TOKEN,
'AIO_TOKEN' => $this->aioToken,
'BORGBACKUP_REMOTE_REPO' => $this->borg_remote_repo,
'BORGBACKUP_MODE' => $this->backupMode,
'AIO_URL' => $this->AIO_URL,