feat: add resetpwd cmd -- fix init useless process

This commit is contained in:
engigu
2026-02-27 23:19:50 +08:00
parent dac413d985
commit 6e50172fd3
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func Run(args []string) {
}
// 必须初始化环境与数据库才能修改密码
bootstrap.New()
bootstrap.InitBasic()
userService := services.NewUserService()
adminUser := userService.GetUserByUsername("admin")