Remove API key From Console
parent
6ddb5b8a80
commit
719a9b34cb
2
main.py
2
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")
|
@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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue