forgot password updates
This commit is contained in:
parent
3101a46c28
commit
f3864cb5ae
@ -58,13 +58,13 @@ export class AuthService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
forgotPassword(email: string, password: string, token: string): Observable<any> {
|
forgotPassword(email: string, password: string, token: string): Observable<any> {
|
||||||
let headers = new HttpHeaders();
|
let headers = new HttpHeaders();
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
headers = headers.set('Authorization', `Bearer ${token}`);
|
headers = headers.set('Authorization', `Bearer ${token}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.http.post(
|
return this.http.put(
|
||||||
`${this.apiUrl}/forgot-password`,
|
`${this.apiUrl}/forgot-password`,
|
||||||
{ P_EMAILADDR: email, P_PASSWORD: password },
|
{ P_EMAILADDR: email, P_PASSWORD: password },
|
||||||
{ headers }
|
{ headers }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user