fix
This commit is contained in:
@@ -32,14 +32,6 @@ func RateLimit(
|
||||
}
|
||||
|
||||
func LoginKeyFn(c *gin.Context) string {
|
||||
var body struct {
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
_ = c.ShouldBindBodyWithJSON(&body)
|
||||
if body.Email != "" {
|
||||
return "login:" + c.ClientIP() + ":" + body.Email
|
||||
}
|
||||
return "login:" + c.ClientIP()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user