Commit Graph

8 Commits

Author SHA1 Message Date
c1c36c606f Refactor config, logging, and startup structure
Introduced pkg modules for environment config, logging, and startup initialization. Replaced direct config and logging setup in main.py with modularized functions. Updated database and migration modules to use environment variables and improved DEBUG handling. Removed tool.py and migrated password utilities to pkg. Cleaned up legacy comments and unused code in models and routes.
2025-10-03 15:00:45 +08:00
815e709339 Refactor password handling and model typing
Replaced custom password generation and verification logic with a new pkg/password.py module using Argon2 for secure hashing. Updated model field types to use PEP 604 union syntax (e.g., str | None) and improved type annotations. Refactored admin and session routes to use new password utilities and direct model methods for CRUD operations. Removed legacy tool-based password functions and cleaned up .idea project files.
2025-10-03 12:01:01 +08:00
252031cb22 修复账号验证 2025-10-03 10:53:27 +08:00
643f19c1f1 修复数据库构建问题 2025-10-03 10:00:22 +08:00
db77d6033b 初步迁移数据库 2025-09-28 11:49:26 +08:00
c648ad35ec 优化登录的安全性 2025-08-11 14:44:33 +08:00
1a3a03dd6f 增强JWT令牌安全性 2025-07-15 11:23:03 +08:00
39bbc94d07 V2.0.0-alpha1 2025-04-22 03:22:17 +08:00