diff --git a/src/components/reset-password/reset-password-service.ts b/src/components/reset-password/reset-password-service.ts index cd113ac9a..2d957604b 100644 --- a/src/components/reset-password/reset-password-service.ts +++ b/src/components/reset-password/reset-password-service.ts @@ -25,6 +25,7 @@ export function resetPasswordService( API_ENDPOINTS.RESET_PASSWORD, { password: newPassword, + isForcedPasswordReset: isForcedPasswordReset, }, getInternalRequestConfigWithSecurityHeaders( { diff --git a/src/components/reset-password/tests/reset-password-service.test.ts b/src/components/reset-password/tests/reset-password-service.test.ts index 972748309..4fe4c17f2 100644 --- a/src/components/reset-password/tests/reset-password-service.test.ts +++ b/src/components/reset-password/tests/reset-password-service.test.ts @@ -62,7 +62,10 @@ describe("reset password service", () => { const expectedApiCallDetails = { expectedPath: API_ENDPOINTS.RESET_PASSWORD, expectedHeaders: expectedHeadersFromCommonVarsWithSecurityHeaders, - expectedBody: { password: newPassword }, + expectedBody: { + password: newPassword, + isForcedPasswordReset: isForcedPasswordReset, + }, }; checkApiCallMadeWithExpectedBodyAndHeaders(