@meshmakers/octo-services 3.5.530 → 3.5.550

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6088,12 +6088,15 @@ class IdentityService {
6088
6088
  await firstValueFrom(this.httpClient.post(baseUrl + `users/${encodeURIComponent(targetUserName)}/merge`, request, { observe: 'response' }));
6089
6089
  }
6090
6090
  }
6091
+ /**
6092
+ * Sets a new password for a user (administrator reset). User name and password travel only in the JSON body;
6093
+ * the identity service refuses the password as a URL query parameter (400).
6094
+ */
6091
6095
  async resetPassword(userName, password) {
6092
- const params = new HttpParams().set('userName', userName).set('password', password);
6093
6096
  const baseUrl = await this.getApiBaseUrl();
6094
6097
  if (baseUrl) {
6095
- const response = await firstValueFrom(this.httpClient.post(baseUrl + 'users/ResetPassword', null, {
6096
- params,
6098
+ const request = { userName, password };
6099
+ const response = await firstValueFrom(this.httpClient.post(baseUrl + 'users/ResetPassword', request, {
6097
6100
  observe: 'response'
6098
6101
  }));
6099
6102
  return response.body;