From f3864cb5aee3f3821b1b070810b0d5c63649ebba Mon Sep 17 00:00:00 2001 From: Cyril Joseph Date: Thu, 10 Jul 2025 13:16:23 -0300 Subject: [PATCH] forgot password updates --- src/app/core/services/common/auth.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }