Remove API key From Console
This commit is contained in:
@@ -188,7 +188,7 @@ async def getclient(get: CL.CL_GET_CLIENT,api_key: APIKey = Depends(auth.get_api
|
|||||||
|
|
||||||
@app.post("/client/user/get")
|
@app.post("/client/user/get")
|
||||||
async def getclient(get: CL.CL_GET_USER_CLIENT,api_key: APIKey = Depends(auth.get_api_key)):
|
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:
|
if not result:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user