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 a3f9111 commit f8aba04
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 @@ -47,7 +47,7 @@ async def login_without_2fa(

@router.post("/2fa/is-2fa-active/")
async def is_2fa_active(
form_data: Annotated[LoginFormWith2FA, Depends()],
form_data: Annotated[OAuth2PasswordRequestForm, Depends()],
) -> bool:
user = await authenticate_user(form_data.username, form_data.password)
if not user:
Expand Down

0 comments on commit f8aba04

Please sign in to comment.