v0.6测试

This commit is contained in:
2026-04-14 20:42:18 +08:00
parent a60ba8352f
commit d17a63d4cd
13 changed files with 680 additions and 473 deletions

View File

@@ -29,11 +29,13 @@ async def login(request: LoginRequest, http_request: Request):
"""
# 获取客户端IP
client_ip = http_request.client.host
user_agent = http_request.headers.get("user-agent", "")
result = await AuthService.login(
username=request.username,
password=request.password,
ip=client_ip
ip=client_ip,
user_agent=user_agent
)
if result["success"]: