Skip to content

Commit

Permalink
BAU: send isForcedPasswordReset in request to backend
Browse files Browse the repository at this point in the history
We had previously added this parameter to the interface, but not used it. In the backend, this controls whether we send the PASSWORD_RESET_INTERVENTION_COMPLETE audit event through, so this change should mean these events are being sent
  • Loading branch information
BeckaL committed May 24, 2024
1 parent b742dc4 commit 4a79acf
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 4a79acf

Please sign in to comment.