From 41a44c1a6bd0d9c72d06585530ba9749524e36d1 Mon Sep 17 00:00:00 2001 From: harture Date: Mon, 13 May 2019 13:22:00 +0200 Subject: [PATCH] Bugfix for DeleteCredentialsForUser --- users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users.go b/users.go index 9116c6b..761a36e 100644 --- a/users.go +++ b/users.go @@ -122,7 +122,7 @@ func (c *Client) GetCredentialsForUser(accessToken string, realmReq, realmName s // DeleteCredentialsForUser remove credentials for a user func (c *Client) DeleteCredentialsForUser(accessToken string, realmReq, realmName string, userID string, credentialID string) error { - return c.delete(accessToken, url.Path(deleteCredentialsForUserPath), url.Param("realmReq", realmReq), url.Param("realm", realmName), url.Param("id", userID), url.Param("credid", userID)) + return c.delete(accessToken, url.Path(deleteCredentialsForUserPath), url.Param("realmReq", realmReq), url.Param("realm", realmName), url.Param("id", userID), url.Param("credid", credentialID)) } // UpdatePassword updates the user's password