From b8d365de3dc9eeb18d669c8fbca4e1ee759b9612 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Fri, 7 Mar 2025 17:06:20 +0100 Subject: [PATCH] fix(chalice): debug refresh token --- api/routers/core_dynamic.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/routers/core_dynamic.py b/api/routers/core_dynamic.py index 2409c388e..4ab135035 100644 --- a/api/routers/core_dynamic.py +++ b/api/routers/core_dynamic.py @@ -75,11 +75,11 @@ def __process_authentication_response(response: JSONResponse, data: dict) -> dic @public_app.post('/login', tags=["authentication"]) def login_user(response: JSONResponse, data: schemas.UserLoginSchema = Body(...)): - if data.email != 'tahay@asayer.io': - raise HTTPException( - status_code=status.HTTP_401_UNAUTHORIZED, - detail="Enforced testing mode is active." - ) + # if data.email != 'tahay@asayer.io': + # raise HTTPException( + # status_code=status.HTTP_401_UNAUTHORIZED, + # detail="Enforced testing mode is active." + # ) if helper.allow_captcha() and not captcha.is_valid(data.g_recaptcha_response): raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED,