diff --git a/app/auth/routers/email.py b/app/auth/routers/email.py index 3ff52be..cd3ff5a 100644 --- a/app/auth/routers/email.py +++ b/app/auth/routers/email.py @@ -40,7 +40,7 @@ async def gen_2fa_code( LoginStatusEnum.SUCCESS, LoginStatusEnum.REQUIRE_2FA ]: - raise JSONResponse( + return JSONResponse( status_code=401, content={ "message": "Something went wrong",