fix(auth): make login_access_token synchronous to prevent blocking

This commit is contained in:
InfinityPacer
2024-10-22 02:02:21 +08:00
parent bb858f4bc1
commit b2d66b8973

View File

@@ -16,7 +16,7 @@ router = APIRouter()
@router.post("/access-token", summary="获取token", response_model=schemas.Token)
async def login_access_token(
def login_access_token(
form_data: OAuth2PasswordRequestForm = Depends(),
otp_password: str = Form(None)
) -> Any: