Updated readme, install and other documentation, changed panel() to site() since it makes more sense that way with netbox. started fixing authentication, hostfact had a login method, but netbox does not, but the user model provides a password that we can authenticate against.
This commit is contained in:
parent
fee417f8bc
commit
0df9b15379
7 changed files with 120 additions and 92 deletions
|
|
@ -4,6 +4,17 @@ namespace wickedsoft\NetBox\Api\Users;
|
|||
|
||||
class Users extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function checkLogin($params)
|
||||
{
|
||||
return $this->get("/users/users/".$id."/", $params);
|
||||
//return $this->post(array_merge(['controller' => 'debtor', 'action' => 'checkLogin'], $params));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue