Remove API key From Console
parent
c39f20a3cf
commit
3238aa378d
|
|
@ -69,6 +69,10 @@ class CL_ADD_REPORT_GROUP(BaseModel):
|
|||
query: str
|
||||
dbname: str
|
||||
|
||||
class CL_CHECK_DISABLED_USER(BaseModel):
|
||||
query: str
|
||||
dbname: str
|
||||
|
||||
class CL_ADD_AD_GROUP(BaseModel):
|
||||
query: str
|
||||
dbname: str
|
||||
|
|
|
|||
2
main.py
2
main.py
|
|
@ -190,7 +190,7 @@ 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)):
|
||||
async def disabled_user(get: CL.CL_CHECK_DISABLED_USER,api_key: APIKey = Depends(auth.get_api_key)):
|
||||
result = database(
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue