config->getSystemValueString('passwordsalt', ''); if ($passwordSalt === '') { try { $this->config->setSystemValue('passwordsalt', $this->random->generate(30)); } catch (HintException $e) { $output->warning('passwordsalt is missing from your config.php and your config.php is read only. Please fix it manually.'); } } $secret = $this->config->getSystemValueString('secret', ''); if ($secret === '') { try { $this->config->setSystemValue('secret', $this->random->generate(48)); } catch (HintException $e) { $output->warning('secret is missing from your config.php and your config.php is read only. Please fix it manually.'); } } } }