@@ -48,6 +48,16 @@ export class UsersService {
|
||||
return this.http.get(`/users/${userId}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Change User Password
|
||||
* @param userId User Id of users
|
||||
* @param password New Password of the user
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
changePassword(userId: string, passwordObj: any) {
|
||||
return this.http.put(`/users/${userId}`, passwordObj);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} userId user ID of user.
|
||||
* @returns {Observable<any>}
|
||||
|
||||
Reference in New Issue
Block a user