Skip to content

fix: session login error#9299

Merged
JoaHuang merged 2 commits intoAlistGo:mainfrom
okatu-loli:session-manage-2
Aug 29, 2025
Merged

fix: session login error#9299
JoaHuang merged 2 commits intoAlistGo:mainfrom
okatu-loli:session-manage-2

Conversation

@okatu-loli
Copy link
Copy Markdown
Collaborator

No description provided.

- Renamed `CountSessionsByUser` to `CountActiveSessionsByUser` and added session status filtering
- Added user and device session limit, with policy handling when exceeding the limit
- Introduced device eviction policy: If the maximum number of devices is exceeded, the oldest session will be evicted using the "evict_oldest" policy
- Modified `LastActive` update logic to ensure accurate session activity time
- Introduced middleware to handle device sessions
- Changed `handleSession` to `HandleSession` in multiple places in `auth.go` to maintain consistent naming
- Updated response structure to return `device_key` and `token`
@JoaHuang JoaHuang merged commit a11e4cf into AlistGo:main Aug 29, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants