update: default secure path

This commit is contained in:
tokumeikoi
2022-12-15 10:59:27 +08:00
parent b6f0508858
commit b9f3838e3b
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ class V2boardInstall extends Command
$this->info(" \ V / / __/| |_) | (_) | (_| | | | (_| | ");
$this->info(" \_/ |_____|____/ \___/ \__,_|_| \__,_| ");
if (\File::exists(base_path() . '/.env')) {
$defaultSecurePath = crc32(config('app.key'));
$defaultSecurePath = hash('crc32b', config('app.key'));
$this->info("访问 http(s)://你的站点/{$defaultSecurePath} 进入管理面板,你可以用户中心修改你的密码。");
abort(500, '如需重新安装请删除目录下.env文件');
}
@ -100,7 +100,7 @@ class V2boardInstall extends Command
$this->info("管理员邮箱:{$email}");
$this->info("管理员密码:{$password}");
$defaultSecurePath = crc32(config('app.key'));
$defaultSecurePath = hash('crc32b', config('app.key'));
$this->info("访问 http(s)://你的站点/{$defaultSecurePath} 进入管理面板,你可以用户中心修改你的密码。");
} catch (\Exception $e) {
$this->error($e->getMessage());