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; +} +