From 2247c9a2a84b7829c7fd9553e96c6c77b5be1e74 Mon Sep 17 00:00:00 2001 From: hijiki51 Date: Sat, 7 May 2022 14:12:21 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20=20change=20session=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/middleware.go | 2 +- router/oauth2.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/router/middleware.go b/router/middleware.go index 64c8626..758f5fc 100644 --- a/router/middleware.go +++ b/router/middleware.go @@ -73,7 +73,7 @@ func (h *Handlers) IsAdminUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc } func (h *Handlers) getRequestUserIDFromCookie(c echo.Context) (uuid.UUID, error) { - sess, err := session.Get("emoine_session", c) + sess, err := session.Get("emoine_session_v2", c) if err != nil { return uuid.Nil, err } diff --git a/router/oauth2.go b/router/oauth2.go index dbae266..3cdc116 100644 --- a/router/oauth2.go +++ b/router/oauth2.go @@ -17,7 +17,7 @@ import ( // GetGeneratedCode GET /oauth2/generate/code func (h *Handlers) GetGeneratedCode(c echo.Context) error { - sess, err := session.Get("emoine_session", c) + sess, err := session.Get("emoine_session_v2", c) if err != nil { log.Printf("error: %v", err) return echo.ErrInternalServerError @@ -44,7 +44,7 @@ func (h *Handlers) GetGeneratedCode(c echo.Context) error { // CallbackHandler GET /api/callback func (h *Handlers) CallbackHandler(c echo.Context) error { - sess, err := session.Get("emoine_session", c) + sess, err := session.Get("emoine_session_v2", c) if err != nil { log.Printf("error: %v", err) return echo.ErrInternalServerError