浏览代码

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