2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: 发布v2.2.22

This commit is contained in:
耗子
2024-07-12 18:20:56 +08:00
parent b56979147e
commit 28cf7098ff
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ func Session() http.Middleware {
}
// 刷新会话
if err := ctx.Request().Session().Regenerate(); err == nil {
/*if err := ctx.Request().Session().Regenerate(); err == nil {
ctx.Response().Cookie(http.Cookie{
Name: ctx.Request().Session().GetName(),
Value: ctx.Request().Session().GetID(),
@@ -45,7 +45,7 @@ func Session() http.Middleware {
HttpOnly: facades.Config().GetBool("session.http_only"),
SameSite: facades.Config().GetString("session.same_site"),
})
}
}*/
ctx.WithValue("user_id", userID)
ctx.Request().Next()

View File

@@ -8,7 +8,7 @@ func init() {
config := facades.Config()
config.Add("panel", map[string]any{
"name": "耗子面板",
"version": "v2.2.21",
"version": "v2.2.22",
"ssl": config.Env("APP_SSL", false),
})
}