From 83248e040b40e1a2f373352d5c30c186598bddd0 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Thu, 12 Oct 2023 13:35:17 +0200 Subject: [PATCH] Remove API key From Console --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index aedeec8..e5dc8bd 100644 --- a/main.py +++ b/main.py @@ -103,7 +103,7 @@ async def sethostname(get: CL.CL_SET_HOST,api_key: APIKey = Depends(auth.get_api return result[0][0] @app.post("/info/sethost_user") -async def sethost_user(get: CL.CL_sET_HOST_USER,api_key: APIKey = Depends(auth.get_api_key)): +async def sethost_user(get: CL.CL_SET_HOST_USER,api_key: APIKey = Depends(auth.get_api_key)): result = database(f"INSERT INTO `{get.dbname}`.user (lastlogon,user) VALUES ('{get.lastlogon}','{get.user}')","","") if not result: return False