Explorar o código

fix: change cookie domain

RegMs If %!s(int64=3) %!d(string=hai) anos
pai
achega
a798f49b3a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 }