mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
feat:clean login limit after login successful (#42)
This commit is contained in:
@@ -134,6 +134,9 @@ func PostUserLogin(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// clean limit
|
||||||
|
limiter = rate.NewLimiter(rate.Every(time.Minute), 5)
|
||||||
|
|
||||||
privateKey, _ := service.MyService.User().GetKeyPair()
|
privateKey, _ := service.MyService.User().GetKeyPair()
|
||||||
|
|
||||||
token := system_model.VerifyInformation{}
|
token := system_model.VerifyInformation{}
|
||||||
|
|||||||
Reference in New Issue
Block a user