Refactor session code

This commit is contained in:
2024-05-05 14:50:51 +07:00
parent 19856c328d
commit dce11e3569
5 changed files with 18 additions and 35 deletions

View File

@ -167,7 +167,7 @@ func GET(w http.ResponseWriter, r *http.Request) {
log.Error(err.Error())
return
}
storeSession := session.GlobalSessionStore.Create()
storeSession := session.Create()
storeSession.Values["user"] = types.User{
UserID: user.UserID,
Email: oauthUser.Email,