feat(login): Captcha upgrade and add the function to ban IP addresses (#250)
This commit is contained in:
1 parent
fe4a115c9d
commit
f2ea022965
18 files changed
+787
-160
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ func ApiInit() {
|
||||
g.NoRoute(func(c *gin.Context) {
|
||||
c.String(http.StatusNotFound, "404 not found")
|
||||
})
|
||||
g.Use(middleware.Logger(), gin.Recovery())
|
||||
g.Use(middleware.Logger(), middleware.Limiter(), gin.Recovery())
|
||||
router.WebInit(g)
|
||||
router.Init(g)
|
||||
router.ApiInit(g)
|
||||
|
||||
Reference in new issue
Block a user