refactor
This commit is contained in:
7
main.py
7
main.py
@ -52,12 +52,7 @@ class IPAToolClient(BaseAsyncClient):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
async def auth_check(self, user: str) -> bool:
|
async def auth_check(self, user: str) -> bool:
|
||||||
r = await self._post(
|
r = await self._post("/auth/check", params={"user": user})
|
||||||
"/auth/check",
|
|
||||||
params={
|
|
||||||
"user": user,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
if r.status != 200:
|
if r.status != 200:
|
||||||
return False
|
return False
|
||||||
json_data = await r.json()
|
json_data = await r.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user