111. Reset password service call (#13)

This commit is contained in:
Art
2021-09-12 14:37:34 +03:00
parent b2dc4088a1
commit 135df16bee

View File

@ -30,6 +30,11 @@ export class UserService {
.put<User | HttpErrorResponse>(`${this.host}/user/${currentUsername}`, formData);
}
public resetPassword(email: string): Observable<HttpResponse> {
return this.httpClient
.post<HttpResponse>(`${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;
}