From 328c78bc4a570a9aceaaa1a2124bacd4a0e8d295 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 6 Oct 2018 13:54:00 +0200 Subject: allow administration to change/reset a user's password --- client/src/app/shared/users/user.service.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app/shared/users') diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts index cc5c051f1..d0abc7def 100644 --- a/client/src/app/shared/users/user.service.ts +++ b/client/src/app/shared/users/user.service.ts @@ -103,6 +103,11 @@ export class UserService { ) } + resetUserPassword (userId: number) { + return this.authHttp.post(UserService.BASE_USERS_URL + userId + '/reset-password', {}) + .pipe(catchError(err => this.restExtractor.handleError(err))) + } + verifyEmail (userId: number, verificationString: string) { const url = `${UserService.BASE_USERS_URL}/${userId}/verify-email` const body = { -- cgit v1.2.3