feat: add reset-password CLI command for any user

This commit is contained in:
Sakurasan committed 2026-09-07 02:33:11 +08:00
1 parent 2e3bb22f81
commit d911881499
3 files changed
+182 -2

No files matched your search

+2 -1
View File
@@ -19,7 +19,8 @@ var rootCmd = &cobra.Command{
go run ./cmd/server
子命令:
reset-admin-password 重置管理员密码(交互式,无参数时自动提示)`,
reset-admin-password 重置管理员密码(交互式,无参数时自动提示)
reset-password 重置任意用户密码`,
RunE: func(c *cobra.Command, args []string) error {
return serve()
},