Skip to content

Commit

Permalink
Merge pull request #460 from traPtitech/change-cookie-name
Browse files Browse the repository at this point in the history
セッション名の変更
  • Loading branch information
hijiki51 authored May 7, 2022
2 parents 9ef3c19 + 2247c9a commit 6eea509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion router/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions router/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6eea509

Please sign in to comment.