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)
|
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG)
|
||||||
|
|
||||||
build: export CGO_ENABLED=0
|
build: export CGO_ENABLED=0
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue