fix: 修复初次源码启动 admin 用户无法登录问题

This commit is contained in:
fit2-zhao 2024-09-13 18:11:10 +08:00 committed by Craftsman
parent 128fc3f778
commit 15536c83e4
1 changed files with 2 additions and 0 deletions

View File

@ -11,3 +11,5 @@ INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT
-- 初始化默认参数文件上传大小 -- 初始化默认参数文件上传大小
INSERT INTO system_parameter (param_key, param_value, type) VALUES ('upload.file.size', '50', 'text'); INSERT INTO system_parameter (param_key, param_value, type) VALUES ('upload.file.size', '50', 'text');
-- 初次安装初始化用户缺少cft_token字段值
UPDATE user SET cft_token = '/sU3a0dtnm5Ykmyj8LfCjA==' WHERE id = 'admin';