fix(chalice): debug refresh token

This commit is contained in:
Taha Yassine Kraiem 2025-03-07 17:06:20 +01:00 committed by Kraiem Taha Yassine
parent 87e7acecde
commit b8d365de3d

View file

@ -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,