fix RetrievePassWord code

This commit is contained in:
aichy126 2023-01-31 10:04:52 +08:00
parent 00e4f2c9de
commit c1fa2b13f6
1 changed files with 2 additions and 2 deletions

View File

@ -157,8 +157,8 @@ func (uc *UserController) RetrievePassWord(ctx *gin.Context) {
return
}
_, _ = uc.actionService.ActionRecordAdd(ctx, schema.ActionRecordTypeFindPass, ctx.ClientIP())
code, err := uc.userService.RetrievePassWord(ctx, req)
handler.HandleResponse(ctx, err, code)
_, err := uc.userService.RetrievePassWord(ctx, req)
handler.HandleResponse(ctx, err, nil)
}
// UseRePassWord godoc