diff --git a/route/v1/user.go b/route/v1/user.go index b030289..c19d833 100644 --- a/route/v1/user.go +++ b/route/v1/user.go @@ -134,6 +134,9 @@ func PostUserLogin(c *gin.Context) { return } + // clean limit + limiter = rate.NewLimiter(rate.Every(time.Minute), 5) + privateKey, _ := service.MyService.User().GetKeyPair() token := system_model.VerifyInformation{}