updated web select

This commit is contained in:
2025-04-06 21:52:04 +03:00
parent eef5982e03
commit e4d50306ac
9 changed files with 266 additions and 26 deletions

View File

@@ -296,6 +296,7 @@ def authentication_token_check_post(
"domain": domain or "",
"eys-ext": f"{str(uuid.uuid4())}",
"token": token,
"tz": tz or "GMT+3",
}
if not domain or not language:
return JSONResponse(
@@ -303,10 +304,15 @@ def authentication_token_check_post(
status_code=status.HTTP_406_NOT_ACCEPTABLE,
headers=headers,
)
if AuthHandlers.LoginHandler.authentication_check_token_valid(access_token=token):
return JSONResponse(
content={"message": "MSG_0001"},
status_code=status.HTTP_202_ACCEPTED,
headers=headers,
)
return JSONResponse(
content={},
status_code=status.HTTP_202_ACCEPTED,
content={"error": "EYS_0033"},
status_code=status.HTTP_406_NOT_ACCEPTABLE,
headers=headers,
)