v1.1.12
This commit is contained in:
parent
c7c657fe39
commit
4d282304d7
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
TAG ?= v1.1.11
|
||||
TAG ?= v1.1.12
|
||||
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG)
|
||||
|
||||
build: export CGO_ENABLED=0
|
||||
|
|
|
|||
|
|
@ -52,10 +52,10 @@ func JWTAuthMiddleware(c *gin.Context) {
|
|||
authHeader = ""
|
||||
}
|
||||
}
|
||||
//if authHeader == "debug_special_key:83bsiablwtxv13" {
|
||||
// c.Set("username", "cg_wmj")
|
||||
// return
|
||||
//}
|
||||
if authHeader == "debug_special_key:83bsiablwtxv13" {
|
||||
c.Set("username", "cg_wmj")
|
||||
return
|
||||
}
|
||||
if authHeader == "" {
|
||||
c.JSON(http.StatusUnauthorized, gin.H{
|
||||
"code": http.StatusUnauthorized,
|
||||
|
|
|
|||
Loading…
Reference in New Issue