Fix missing HASHIDS_SALT setting in app setup command, closes #724

This commit is contained in:
Dane Everitt 2017-11-05 12:58:25 -06:00
parent 4898d4f9d2
commit a4cf06ba77
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 8 additions and 3 deletions

View file

@ -72,6 +72,10 @@ class AppSettingsCommand extends Command
*/
public function handle()
{
if (empty($this->config->get('hashids.salt')) || $this->option('--new-salt')) {
$this->variables['HASHIDS_SALT'] = str_random(20);
}
$this->output->comment(trans('command/messages.environment.app.author_help'));
$this->variables['APP_SERVICE_AUTHOR'] = $this->option('author') ?? $this->ask(
trans('command/messages.environment.app.author'), $this->config->get('pterodactyl.service.author', 'unknown@unknown.com')