From 135df16beebc3306ee7ed77f18c472cae5358817 Mon Sep 17 00:00:00 2001 From: Art Date: Sun, 12 Sep 2021 14:37:34 +0300 Subject: [PATCH] 111. Reset password service call (#13) --- .../src/app/service/user.service.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/support-portal-frontend/src/app/service/user.service.ts b/support-portal-frontend/src/app/service/user.service.ts index 6e184e3..5edc57e 100644 --- a/support-portal-frontend/src/app/service/user.service.ts +++ b/support-portal-frontend/src/app/service/user.service.ts @@ -30,6 +30,11 @@ export class UserService { .put(`${this.host}/user/${currentUsername}`, formData); } + public resetPassword(email: string): Observable { + return this.httpClient + .post(`${this.host}/user/resetPassword/${email}`, null); + } + } export interface UserPage { @@ -44,3 +49,12 @@ export interface UserPage { empty: boolean; } + +export interface HttpResponse { + timestamp: Date; + httpStatusCode: number; + httpStatus: string; + reason: string; + message: string; +} +