diff --git a/lib/auth.js b/lib/auth.js index 2a32cbe..9d5fa05 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -254,7 +254,8 @@ const authClient = new Model({ }, }; - return apiClient.put('/../users', data, config.jsonHeaders) + const url = config.host + '/users'; + return makeCredentialHTTPRequest('PUT', url, data, config.jsonHeaders) .then(function() { // Resetting the password changes the underlying cookie session data // need to sign out and back in to refresh @@ -297,7 +298,8 @@ const authClient = new Model({ }, }; - return apiClient.put('/../users/password', data, config.jsonHeaders); + const url = config.host + '/users/password'; + return makeCredentialHTTPRequest('PUT', url, data, config.jsonHeaders); }.bind(this)); },