feat: Implement API routers for user, tag, vas, webdav, and slave functionalities
- Added user authentication and registration endpoints with JWT support. - Created tag management routes for creating and deleting tags. - Implemented value-added service (VAS) endpoints for managing storage packs and orders. - Developed WebDAV account management routes for creating, updating, and deleting accounts. - Introduced slave router for handling file uploads, downloads, and aria2 task management. - Enhanced JWT utility functions for token creation and secret key management. - Established lifespan management for FastAPI application startup and shutdown processes. - Integrated password handling utilities with Argon2 hashing and two-factor authentication support.
This commit is contained in:
@@ -4,7 +4,7 @@ from loguru import logger as log
|
||||
from sqlmodel.ext.asyncio.session import AsyncSession
|
||||
|
||||
from models import LoginRequest, TokenResponse, User
|
||||
from pkg.JWT.JWT import create_access_token, create_refresh_token
|
||||
from utils.JWT.JWT import create_access_token, create_refresh_token
|
||||
|
||||
|
||||
async def Login(
|
||||
@@ -25,7 +25,7 @@ async def Login(
|
||||
|
||||
:return: TokenResponse 对象或状态码或 None
|
||||
"""
|
||||
from pkg.password.pwd import Password
|
||||
from utils.password.pwd import Password
|
||||
|
||||
# TODO: 验证码校验
|
||||
# captcha_setting = await Setting.get(
|
||||
|
||||
Reference in New Issue
Block a user