Browse Source

update: show secure path

tokumeikoi 3 years ago
parent
commit
c3a47fddb5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Console/Commands/V2boardInstall.php

+ 3 - 1
app/Console/Commands/V2boardInstall.php

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