소스 검색

fix: change cookie domain

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)
 }