add client ID for plugin service

This commit is contained in:
ginuerzh committed 2023-09-19 22:31:37 +08:00
1 parent 95da26cf49
commit 674a70cd23
26 files changed
+306 -320

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ func mwBasicAuth(auther auth.Authenticator) gin.HandlerFunc {
return
}
u, p, _ := c.Request.BasicAuth()
if !auther.Authenticate(c, u, p) {
if ok, _ := auther.Authenticate(c, u, p); !ok {
c.AbortWithStatus(http.StatusUnauthorized)
}
}