Skip to content

Commit

Permalink
Merge pull request #216 from prefeitura-rio/feat/2fa
Browse files Browse the repository at this point in the history
refactor: Change HTTP method for generating QR code to POST
  • Loading branch information
TanookiVerde committed Sep 2, 2024
2 parents b907042 + 0efb704 commit 2ca1daa
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 2ca1daa

Please sign in to comment.