From d3d0740ba16c14e9d2ee8a6d2fa44066674d86e4 Mon Sep 17 00:00:00 2001 From: Pedro Nascimento Date: Mon, 2 Sep 2024 14:19:21 -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 1640ff5..9c8113f 100644 --- a/app/routers/auth.py +++ b/app/routers/auth.py @@ -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: