Skip to content

Commit

Permalink
Merge pull request #221 from prefeitura-rio/feat/use-cpf-partition
Browse files Browse the repository at this point in the history
refactor: Update login endpoint to use OAuth2PasswordRequestForm for …
  • Loading branch information
TanookiVerde committed Sep 2, 2024
2 parents 0053902 + d3d0740 commit 1cb5c88
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 @@ -107,7 +107,7 @@ async def enable_2fa(

@router.post("/2fa/generate-qrcode/")
async def generate_qrcode(
form_data: Annotated[LoginFormWith2FA, Depends()],
form_data: Annotated[OAuth2PasswordRequestForm, Depends()],
) -> bytes:
current_user = await authenticate_user(form_data.username, form_data.password)
if not current_user:
Expand Down

0 comments on commit 1cb5c88

Please sign in to comment.