修复验证码cookie

pull/79/head
zhangchenhao 2025-05-15 15:01:48 +08:00
parent 8573cd2dbf
commit 52731aa4aa
1 changed files with 10 additions and 10 deletions

View File

@ -137,7 +137,7 @@ func Sign(c *gin.Context) {
_ = session.Save()
// c.JSON(http.StatusOK, public.ResOK(0, nil, "登录成功"))
// 设置cookie
c.SetCookie("must_code", "1", 0, "/", "", false, false)
c.SetCookie("must_code", "1", -1, "/", "", false, false)
public.SuccessMsg(c, "登录成功")
return
}