Skip to content

Commit

Permalink
refactor: Change HTTP method for generating QR code to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
TanookiVerde committed Sep 2, 2024
1 parent 9dec108 commit 0efb704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def enable_2fa(
}


@router.get("/2fa/generate-qrcode/")
@router.post("/2fa/generate-qrcode/")
async def generate_qrcode(
form_data: Annotated[OAuth2PasswordRequestForm, Depends()],
) -> bytes:
Expand Down

0 comments on commit 0efb704

Please sign in to comment.