fix: align admin behavior and Kratos integrations

This commit is contained in:
2026-08-14 14:14:51 +08:00
parent 8c4c6ba661
commit e0b0e1d8c8
123 changed files with 4334 additions and 1877 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
package handler
import (
"net/http"
"kra/internal/server/httpx"
"kra/internal/service"
@@ -21,6 +19,6 @@ func (h *Session) Logout(c *gin.Context) {
httpx.Fail(c, "退出失败")
return
}
http.SetCookie(c.Writer, &http.Cookie{Name: "x-token", Value: "", Path: "/", MaxAge: -1, HttpOnly: true})
httpx.SetTokenCookie(c, "", -1)
httpx.OK(c)
}