更新注册方式

This commit is contained in:
2026-03-17 13:47:44 +08:00
parent c64d8e67dc
commit 0a3d7daf2c
6 changed files with 2 additions and 0 deletions

View File

@@ -147,6 +147,8 @@ async def register_user(user_data: UserCreate, db: AsyncSession = Depends(get_db
expires_in=3600,
user=UserResponse.from_orm(user)
)
except HTTPException:
raise # 直接传递 HTTPException如密码强度不够
except Exception as e:
raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,

Binary file not shown.