From c39f20a3cfc762828eb6a3d0783a8e363c7ad1ce Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Wed, 11 Oct 2023 09:43:25 +0200 Subject: [PATCH] Remove API key From Console --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 924ba6e..cd4ee12 100644 --- a/main.py +++ b/main.py @@ -192,7 +192,8 @@ async def add_ad_user(get: CL.CL_ADD_EX_USER,api_key: APIKey = Depends(auth.get_ @app.post("/checkdisabledduser") async def disabled_user(get: CL.CL_ADD_EX_USER,api_key: APIKey = Depends(auth.get_api_key)): result = database( - f"select `{get.dbname}`.`GruppenToUser`.`Deaktiviert` from ((`{get.dbname}`.`User`join `tnp-Invest-GmbH`.`GruppenToUser` on ((`tnp-Invest-GmbH`.`User`.`ID` = `tnp-Invest-GmbH`.`GruppenToUser`.`UserID`))) join`{get.dbname}`.`Gruppen`on ((`{get.dbname}`.`Gruppen`.`ID` = `tnp-Invest-GmbH`.`GruppenToUser`.`GruppenID`)) WHERE `Name` = {get.user})") + f"select `{get.dbname}`.`Gruppen`.`Name` AS `Gruppen-Name`,`{get.dbname}`.`GruppenToUser`.`Deaktiviert` from ((`{get.dbname}`.`User`join `tnp-Invest-GmbH`.`GruppenToUser` on ((`tnp-Invest-GmbH`.`User`.`ID` = `tnp-Invest-GmbH`.`GruppenToUser`.`UserID`))) join`{get.dbname}`.`Gruppen`on ((`{get.dbname}`.`Gruppen`.`ID` = `tnp-Invest-GmbH`.`GruppenToUser`.`GruppenID`)) WHERE `Name` = {get.user})") + return result @app.post("/volume_mount") async def volume_mount(get: CL.CL_GET_VOLUME,api_key: APIKey = Depends(auth.get_api_key)):