add plugin system
This commit is contained in:
1 parent
7576651a67
commit
32c8188351
48 files changed
+761
-115
No files matched your search
+1
-1
@@ -35,7 +35,7 @@ func mwBasicAuth(auther auth.Authenticator) gin.HandlerFunc {
|
||||
return
|
||||
}
|
||||
u, p, _ := c.Request.BasicAuth()
|
||||
if !auther.Authenticate(u, p) {
|
||||
if !auther.Authenticate(c, u, p) {
|
||||
c.AbortWithStatus(http.StatusUnauthorized)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user