1
0
Fork 0
forked from 0x2E/fusion
fusion/api
Michael Lynch 01cc024981 Fix a session checking bug
Resolves #53

This fixes a bug I accidentally introduced by misunderstanding the echo session package. I thought that calling session.Get would return an error if no session existed for the session token valule. It seems that instead, if a session doesn't exist, session.Get creates one on-demand.

To fix this, we have to check the IsNew field of the session to see if calling session.Get created this session on-demand or if this was a session that was previously created in the Create function.

I introduced this bug in #43.
2025-01-19 16:08:53 -05:00
..
api.go Check passwords based on hashes rather than plaintext 2025-01-12 11:31:01 -05:00
feed.go refactor: list only the feeds that match the condition 2024-08-04 17:35:31 +08:00
group.go feat(#5): create groups and import feeds into them, based on opml 2024-08-25 18:40:34 +08:00
item.go refactor: derive context from user's request 2024-03-18 18:17:43 +08:00
session.go Fix a session checking bug 2025-01-19 16:08:53 -05:00