mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
#9 show setup page as long as no password is configured
This commit is contained in:
parent
3f672595ea
commit
e74b3801a8
2 changed files with 7 additions and 4 deletions
|
|
@ -22,9 +22,12 @@ class ConfigurationManager
|
|||
return $this->GetConfig()['username'];
|
||||
}
|
||||
|
||||
public function GetPassword() : string {
|
||||
public function GetPassword() : ?string {
|
||||
if(array_key_exists('password', $this->GetConfig())){
|
||||
return $this->GetConfig()['password'];
|
||||
}
|
||||
else return null;
|
||||
}
|
||||
|
||||
public function GetToken() : string {
|
||||
return $this->GetConfig()['AIO_TOKEN'];
|
||||
|
|
|
|||
|
|
@ -27,6 +27,6 @@ class Setup
|
|||
}
|
||||
|
||||
public function CanBeInstalled() : bool {
|
||||
return !file_exists(DataConst::GetConfigFile());
|
||||
return is_null($this->configurationManager->GetPassword());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue