Skip to content

Commit

Permalink
Add emptyBody to UnsuspendUser
Browse files Browse the repository at this point in the history
  • Loading branch information
infamousjoeg committed Dec 5, 2023
1 parent 17a6c66 commit a8f1c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cybr/api/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func (c Client) UnsuspendUser(userID int) error {
url := fmt.Sprintf("%s/passwordvault/api/Users/%d/activate", c.BaseURL, userID)

response, err := httpJson.Post(false, url, c.SessionToken, nil, c.InsecureTLS, c.Logger)
response, err := httpJson.Post(false, url, c.SessionToken, emptyBody, c.InsecureTLS, c.Logger)
if err != nil {
returnedError, _ := json.Marshal(response)
return fmt.Errorf("Failed to unsuspend user with id '%d'. %s. %s", userID, string(returnedError), err)
Expand Down

0 comments on commit a8f1c5b

Please sign in to comment.