RegMs If пре 3 година
родитељ
комит
a798f49b3a
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
 }