@meshmakers/octo-services 3.3.430 → 3.3.440
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.
|
@@ -2195,6 +2195,12 @@ class IdentityService {
|
|
|
2195
2195
|
}));
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
|
+
async mergeUsers(targetUserName, sourceUserName) {
|
|
2199
|
+
if (this.configurationService.config?.issuer) {
|
|
2200
|
+
const request = { sourceUserName };
|
|
2201
|
+
await firstValueFrom(this.httpClient.post(this.configurationService.config.issuer + `system/v1/users/${encodeURIComponent(targetUserName)}/merge`, request, { observe: 'response' }));
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2198
2204
|
async resetPassword(userName, password) {
|
|
2199
2205
|
const params = new HttpParams().set('userName', userName).set('password', password);
|
|
2200
2206
|
if (this.configurationService.config?.issuer) {
|