Skip to content

Commit

Permalink
Merge pull request #220 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 16ad1bb + f8aba04 commit 0053902
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 0053902

Please sign in to comment.