Skip to content

Commit

Permalink
refactor: Update login endpoint to use OAuth2PasswordRequestForm for …
Browse files Browse the repository at this point in the history
…2FA activation
  • Loading branch information
TanookiVerde committed Sep 2, 2024
1 parent f8aba04 commit d3d0740
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 d3d0740

Please sign in to comment.