From 719a9b34cb7527f974c49d98776f46b2e7c82003 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Mon, 30 Oct 2023 14:32:24 +0100 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 3bf1a57..926990f 100644 --- a/main.py +++ b/main.py @@ -188,7 +188,7 @@ async def getclient(get: CL.CL_GET_CLIENT,api_key: APIKey = Depends(auth.get_api @app.post("/client/user/get") async def getclient(get: CL.CL_GET_USER_CLIENT,api_key: APIKey = Depends(auth.get_api_key)): - result = database(f"SELECT SamAccountName FROM `{get.dbname}`.`Clients` where `Host-Name` = '{get.hostname}'","Stines-GmbH","") + result = database(f"SELECT NetVolumeUser FROM `{get.dbname}`.`Clients` where `Host-Name` = '{get.hostname}'","","") if not result: return False else: