Compare commits
2 Commits
213b7730ca
...
83248e040b
| Author | SHA1 | Date | |
|---|---|---|---|
| 83248e040b | |||
| e3595ec745 |
@@ -102,8 +102,8 @@ async def sethostname(get: CL.CL_SET_HOST,api_key: APIKey = Depends(auth.get_api
|
||||
else:
|
||||
return result[0][0]
|
||||
|
||||
@app.post("/info/gethost_user")
|
||||
async def gethost_user(get: CL.CL_GET_HOST_USER,api_key: APIKey = Depends(auth.get_api_key)):
|
||||
@app.post("/info/sethost_user")
|
||||
async def sethost_user(get: CL.CL_SET_HOST_USER,api_key: APIKey = Depends(auth.get_api_key)):
|
||||
result = database(f"INSERT INTO `{get.dbname}`.user (lastlogon,user) VALUES ('{get.lastlogon}','{get.user}')","","")
|
||||
if not result:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user