Remove API key From Console

master
Sebastian Serfling 2023-11-01 09:11:39 +01:00
parent 753f1e7dc1
commit 6f25ef191b
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ async def get_addreport_group(get: CL.CL_ADD_REPORT_GROUP,api_key: APIKey = Depe
print(database(get.query,get.dbname,"")) print(database(get.query,get.dbname,""))
return f"Create {get.query} - {get.dbname}" return f"Create {get.query} - {get.dbname}"
@app.post("/report/errolog") @app.post("/report/errorlog")
async def get_errorlog(get: CL.CL_ERROR_LOG,api_key: APIKey = Depends(auth.get_api_key)): async def get_errorlog(get: CL.CL_ERROR_LOG,api_key: APIKey = Depends(auth.get_api_key)):
print(database(f"INSERT INTO {get.dname}.ERROR_LOG (datum,hostname,samaccouuntname,fehlercode) VALUES ({get.datum},{get.hostname},{get.user},{get.errocode})","","")) print(database(f"INSERT INTO {get.dname}.ERROR_LOG (datum,hostname,samaccouuntname,fehlercode) VALUES ({get.datum},{get.hostname},{get.user},{get.errocode})","",""))
return f"ADD {get.errocode} - {get.hostname}" return f"ADD {get.errocode} - {get.hostname}"