From 88d7e2d35ecb27c0e89aac264538ec652ad3c745 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Jan 2020 19:48:18 +0800 Subject: [PATCH] update --- app/Console/Commands/V2boardInstall.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Console/Commands/V2boardInstall.php b/app/Console/Commands/V2boardInstall.php index a2fcd6ff..f5777be9 100644 --- a/app/Console/Commands/V2boardInstall.php +++ b/app/Console/Commands/V2boardInstall.php @@ -83,6 +83,9 @@ class V2boardInstall extends Command { $user = new User(); $user->email = $email; + if (strlen($password) < 8) { + abort(500, '管理员密码长度最小为8位字符'); + } $user->password = password_hash($password, PASSWORD_DEFAULT); $user->v2ray_uuid = Helper::guid(true); $user->token = Helper::guid();