This commit is contained in:
root 2020-01-14 19:48:18 +08:00
parent 9b6919e9c9
commit 88d7e2d35e

View File

@ -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();