mirror of
https://github.com/komari-monitor/komari.git
synced 2026-11-17 20:32:13 +00:00
- Removed legacy session management code from `session.go` and `sqlite3.go`. - Introduced new `accounts` package for user and session management. - Implemented GORM for database interactions, replacing raw SQL queries. - Created models for `User`, `Session`, `Client`, `History`, and other entities. - Added functions for creating, retrieving, and deleting sessions. - Implemented automatic cleanup of old history records. - Updated `main.go` to initialize the database and create a default admin account. - Enhanced error handling and logging throughout the database operations.