feat: implement authentication system

- Add auth.rs module with session management
- Implement login/logout/verify API endpoints
- Add authentication middleware
- Protect /api/v2/tree endpoint
- Default demo user (username: demo, password: demo123)
- Token-based auth with 24-hour expiration
- bcrypt password hashing
This commit is contained in:
Warren
2026-05-16 17:54:32 +08:00
parent 2e7d538712
commit 6e3de0169e
4 changed files with 277 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
pub mod audio;
pub mod auth;
pub mod command;
pub mod filetree;
pub mod render;