fix: env init (#33)
This commit is contained in:
@@ -13,9 +13,6 @@ func SetCookie(gc *gin.Context, token string) {
|
||||
secure := true
|
||||
httpOnly := true
|
||||
|
||||
if !constants.IS_PROD {
|
||||
secure = false
|
||||
}
|
||||
u, err := url.Parse(constants.SERVER_URL)
|
||||
if err != nil {
|
||||
log.Println("error getting server host")
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
func IsSuperAdmin(gc *gin.Context) bool {
|
||||
secret := gc.Request.Header.Get("x-yauth-admin-secret")
|
||||
secret := gc.Request.Header.Get("x-authorizer-root-secret")
|
||||
if secret == "" {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user