diff --git a/api/routers/core_dynamic.py b/api/routers/core_dynamic.py index f8de79cc3..a784488c6 100644 --- a/api/routers/core_dynamic.py +++ b/api/routers/core_dynamic.py @@ -73,6 +73,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 helper.allow_captcha() and not captcha.is_valid(data.g_recaptcha_response): raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED,