diff --git a/src/app/core/services/common/auth.service.ts b/src/app/core/services/common/auth.service.ts index 04d5f36..1f34416 100644 --- a/src/app/core/services/common/auth.service.ts +++ b/src/app/core/services/common/auth.service.ts @@ -50,7 +50,7 @@ export class AuthService { } register(email: string, password: string): Observable { - + return this.http.post( `${this.apiUrl}/register`, { P_EMAILADDR: email, P_PASSWORD: password } @@ -58,13 +58,13 @@ export class AuthService { } forgotPassword(email: string, password: string, token: string): Observable { - 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 }