@solidpepper/solidpepper-service 1.0.3 → 1.0.4
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.
|
@@ -6431,6 +6431,10 @@ class UsersService {
|
|
|
6431
6431
|
let headers = this._settingsService.getHeaders();
|
|
6432
6432
|
return this.http.get(this._settingsService.getSettings('apiUrl') + 'Users/' + login, { headers });
|
|
6433
6433
|
}
|
|
6434
|
+
getUserAvatar(userGuid) {
|
|
6435
|
+
let headers = this._settingsService.getHeaders();
|
|
6436
|
+
return this.http.get(this._settingsService.getSettings('apiUrl') + 'Users/' + userGuid + '/avatar', { headers });
|
|
6437
|
+
}
|
|
6434
6438
|
/* ========================================================================
|
|
6435
6439
|
CREATE
|
|
6436
6440
|
======================================================================== */
|
|
@@ -6487,15 +6491,50 @@ class UsersService {
|
|
|
6487
6491
|
newPassword: newPassword,
|
|
6488
6492
|
}, options);
|
|
6489
6493
|
}
|
|
6494
|
+
confirmUser(param, alias) {
|
|
6495
|
+
let headers = this._settingsService.getHeaders();
|
|
6496
|
+
let options = { headers: headers };
|
|
6497
|
+
return this.http.post(this._settingsService.getSettings('apiUrl') + 'Users/confirm-account', {
|
|
6498
|
+
parameter: param,
|
|
6499
|
+
alias: alias,
|
|
6500
|
+
}, options);
|
|
6501
|
+
}
|
|
6502
|
+
forgotPassword(login, alias, isStudio) {
|
|
6503
|
+
let headers = this._settingsService.getHeaders();
|
|
6504
|
+
let options = { headers: headers };
|
|
6505
|
+
return this.http.post(this._settingsService.getSettings('apiUrl') + 'Users/forgotpassword', {
|
|
6506
|
+
login: login,
|
|
6507
|
+
alias: alias,
|
|
6508
|
+
isStudio: isStudio,
|
|
6509
|
+
initPassword: false
|
|
6510
|
+
}, options);
|
|
6511
|
+
}
|
|
6512
|
+
checkForgotPassword(param, alias) {
|
|
6513
|
+
let headers = this._settingsService.getHeaders();
|
|
6514
|
+
let options = { headers: headers };
|
|
6515
|
+
return this.http.post(this._settingsService.getSettings('apiUrl') + 'Users/forgotpassword/check', {
|
|
6516
|
+
parameter: param,
|
|
6517
|
+
alias: alias,
|
|
6518
|
+
}, options);
|
|
6519
|
+
}
|
|
6520
|
+
changeForgotenPassword(param, alias, newPassword) {
|
|
6521
|
+
let headers = this._settingsService.getHeaders();
|
|
6522
|
+
let options = { headers: headers };
|
|
6523
|
+
return this.http.post(this._settingsService.getSettings('apiUrl') + 'Users/initializepassword', {
|
|
6524
|
+
parameter: param,
|
|
6525
|
+
alias: alias,
|
|
6526
|
+
newPassword: newPassword,
|
|
6527
|
+
}, options);
|
|
6528
|
+
}
|
|
6490
6529
|
/* ========================================================================
|
|
6491
6530
|
DELETE
|
|
6492
6531
|
======================================================================== */
|
|
6493
|
-
deleteUsers(
|
|
6532
|
+
deleteUsers(listGuid) {
|
|
6494
6533
|
let headers = this._settingsService.getHeaders();
|
|
6495
6534
|
return this.http.request('delete', this._settingsService.getSettings('apiUrl') + 'Users', {
|
|
6496
6535
|
headers: headers,
|
|
6497
6536
|
body: {
|
|
6498
|
-
listingUsersToDelete:
|
|
6537
|
+
listingUsersToDelete: listGuid,
|
|
6499
6538
|
},
|
|
6500
6539
|
});
|
|
6501
6540
|
}
|