mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Camelize property AIO_TOKEN => aioToken
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
27fd1e82ab
commit
dd5d51cb2a
3 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue