Skip to content

Commit

Permalink
🐛fix: password endpoint client method (#130)
Browse files Browse the repository at this point in the history
* 🐛fix: password endpoint client method

* 🐛fix: Test for /access/password
  • Loading branch information
alperencelik authored Mar 11, 2024
1 parent f038446 commit 6a14f51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion access.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (c *Client) Permissions(ctx context.Context, o *PermissionsOptions) (permis
}

func (c *Client) Password(ctx context.Context, userid, password string) error {
return c.Post(ctx, "/access/password", map[string]string{
return c.Put(ctx, "/access/password", map[string]string{
"userid": userid,
"password": password,
}, nil)
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/pve7x/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func access() {
}`)

gock.New(config.C.URI).
Post("^/access/password$").
Put("^/access/password$").
Reply(200).
JSON(`{"success":1,"data":null}`)

Expand Down

0 comments on commit 6a14f51

Please sign in to comment.