Prechádzať zdrojové kódy

fix: change cookie domain

RegMs If 3 rokov pred
rodič
commit
a798f49b3a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      controller/users.go

+ 1 - 1
controller/users.go

@@ -64,7 +64,7 @@ func Login(c *gin.Context) {
 		return
 	}
 
-	c.SetCookie(AuthTokenKey, token, int(720*time.Hour), "", "word.regmsif.cf", true, true)
+	c.SetCookie(AuthTokenKey, token, int(720*time.Hour), "/", "regmsif.cf", true, true)
 
 	respondOK(c, user)
 }