Remove API key From Console
This commit is contained in:
@@ -151,7 +151,11 @@ async def add_report_user(get: CL.CL_ADD_REPORT_USER,api_key: APIKey = Depends(a
|
|||||||
|
|
||||||
@app.post("/ad/getgroup")
|
@app.post("/ad/getgroup")
|
||||||
async def get_ad_group(get: CL.CL_GET_AD_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
async def get_ad_group(get: CL.CL_GET_AD_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
return database(f"SELECT ID, Name FROM `{get.dbname}`.`Gruppen`","","")
|
result = database(f"SELECT ID, Name FROM `{get.dbname}`.`Gruppen`","","")
|
||||||
|
if not result:
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
return result[0][0]
|
||||||
|
|
||||||
@app.post("/ad/addgroup")
|
@app.post("/ad/addgroup")
|
||||||
async def add_ad_user(get: CL.CL_ADD_AD_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
async def add_ad_user(get: CL.CL_ADD_AD_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
|
|||||||
Reference in New Issue
Block a user