From f8aba0484cd5ea277d7dff08a9fdd6104b63d176 Mon Sep 17 00:00:00 2001 From: Pedro Nascimento Date: Mon, 2 Sep 2024 13:53:40 -0300 Subject: [PATCH] refactor: Update login endpoint to use OAuth2PasswordRequestForm for 2FA activation --- app/routers/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/auth.py b/app/routers/auth.py index 11218a4..1640ff5 100644 --- a/app/routers/auth.py +++ b/app/routers/auth.py @@ -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: