Skip to content

Commit

Permalink
Merge pull request #1641 from govuk-one-login/BAU/fix-reset-password-…
Browse files Browse the repository at this point in the history
…request-forced-reset

BAU: send isForcedPasswordReset in request to backend
  • Loading branch information
BeckaL authored May 24, 2024
2 parents b742dc4 + 4a79acf commit 65ec077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/reset-password/reset-password-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function resetPasswordService(
API_ENDPOINTS.RESET_PASSWORD,
{
password: newPassword,
isForcedPasswordReset: isForcedPasswordReset,
},
getInternalRequestConfigWithSecurityHeaders(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 65ec077

Please sign in to comment.