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> {
|
||||
let headers = new HttpHeaders();
|
||||
let headers = new HttpHeaders();
|
||||
|
||||
if (token) {
|
||||
headers = headers.set('Authorization', `Bearer ${token}`);
|
||||
}
|
||||
|
||||
return this.http.post(
|
||||
return this.http.put(
|
||||
`${this.apiUrl}/forgot-password`,
|
||||
{ P_EMAILADDR: email, P_PASSWORD: password },
|
||||
{ headers }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user