Skip to content

Commit

Permalink
feat: 发布v2.2.22
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jul 12, 2024
1 parent b569791 commit 28cf709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/http/middleware/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion config/panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
})
}

0 comments on commit 28cf709

Please sign in to comment.