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