Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update captcha

aichye31fc6ebff82
diff --git a/internal/controller/user_controller.go b/internal/controller/user_controller.go
index c9b7aaea..e0fc48a2 100644
--- a/internal/controller/user_controller.go
+++ b/internal/controller/user_controller.go
@@ -395,7 +395,7 @@ func (uc *UserController) UserModifyPassWord(ctx *gin.Context) {
}
err = uc.userService.UserModifyPassword(ctx, req)
if err == nil {
- uc.actionService.ActionRecordDel(ctx, entity.CaptchaActionPassword, ctx.ClientIP())
+ uc.actionService.ActionRecordDel(ctx, entity.CaptchaActionPassword, req.UserID)
}
handler.HandleResponse(ctx, err, nil)
}