feat: add 2fa support, starred items, batch operations, and logging infrastructure

- Implement two-factor authentication with TOTP verification, recovery codes, and QR code setup in auth flow
- Add is_starred and last_accessed_at fields to File and Folder models for bookmarking and recency tracking
- Introduce batch operation endpoints for files and folders (delete, star, unstar, move, copy)
- Configure structured logging with timestamps and module names, replacing print statements
- Register admin and starred routers, add global HTTPException handler with JSON error responses
- Update authenticate_user and create_access_token to handle 2FA verification and token claims
This commit is contained in:
2025-11-10 00:58:41 +00:00
parent 6b01dc3fa3
commit c140eee47f
21 changed files with 1438 additions and 30 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ __pycache__/
.*
storage
*.so
*.txt
poetry.lock
rbox.*
.Python
build/
develop-eggs/