Remove API key From Console
parent
81f44d6432
commit
447f64c3ea
2
main.py
2
main.py
|
|
@ -167,7 +167,7 @@ async def get_user_id(get: CL.CL_GET_USER_ID,api_key: APIKey = Depends(auth.get_
|
||||||
|
|
||||||
@app.post("/report/addusertogroup")
|
@app.post("/report/addusertogroup")
|
||||||
async def get_addusertogroup(get: CL.CL_ADD_USER_TO_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
async def get_addusertogroup(get: CL.CL_ADD_USER_TO_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
result = database(f"INSERT INTO GruppenToUser (UserID,GruppenID) VALUES ({get.userID,get.groupID})")
|
result = database(f"INSERT INTO `{get.dbname}`.GruppenToUser (UserID,GruppenID) VALUES ({get.userID,get.groupID})")
|
||||||
if not result:
|
if not result:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue