feat:clean login limit after login successful (#42)

This commit is contained in:
CorrectRoad 2024-03-11 17:29:22 +08:00 committed by GitHub
parent 7bd0df6441
commit 9c261dd8df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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{}