Skip to content

Commit

Permalink
feat:clean login limit after login successful (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Mar 11, 2024
1 parent 7bd0df6 commit 9c261dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions route/v1/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 9c261dd

Please # to comment.