reset password en cours

This commit is contained in:
Blandine Bajard 2022-01-21 12:30:05 +01:00
parent 673887a81c
commit b994e6be58
5 changed files with 173 additions and 79 deletions

View file

@ -1,4 +1,5 @@
import { HttpClient } from '@angular/common/http';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { identifierModuleUrl } from '@angular/compiler';
import { Injectable } from '@angular/core';
import { map, Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
@ -51,4 +52,10 @@ export class AuthService {
};
return this.http.post(`${this.apiUrl}/membres/forgot-password`, body);
}
resetPassword(email: string, password: string): Observable<any> {
const body = password;
console.log(password);
return this.http.post(`${this.apiUrl}/membres/reset-password/${email}`, body);
}
}