Merge pull request 'Fix cached session bug' (#8) from sso-fix into main

Reviewed-on: https://git.ts.mattnite.net/mattnite/forgejo-tickets/pulls/8
This commit is contained in:
Matthew Knight 2026-02-17 20:15:42 +00:00
commit 29cbe1a52b
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ func (s *PGStore) Save(r *http.Request, w http.ResponseWriter, session *sessions
}
result := s.db.Where("token = ?", session.ID).Assign(models.Session{
UserID: userID,
Data: buf.Bytes(),
ExpiresAt: expiresAt,
}).FirstOrCreate(&dbSession)