diff --git a/src/users/data/api.js b/src/users/data/api.js index f221577d2..360975f3b 100644 --- a/src/users/data/api.js +++ b/src/users/data/api.js @@ -376,10 +376,7 @@ export async function postTogglePasswordStatus(user, comment) { export async function postResetPassword(email) { const { data } = await getAuthenticatedHttpClient().post( - `${getConfig().LMS_BASE_URL}/account/password`, - { - email, - }, + `${getConfig().LMS_BASE_URL}/account/password`, `email_from_support_tools=${email}`, ); return data; } diff --git a/src/users/data/api.test.js b/src/users/data/api.test.js index cdfea5eb2..86018f5b0 100644 --- a/src/users/data/api.test.js +++ b/src/users/data/api.test.js @@ -312,7 +312,7 @@ describe('API', () => { it('Reset Password Response', async () => { const expectedResponse = { }; - mockAdapter.onPost(resetPasswordApiUrl, { email: testEmail }).reply(200, expectedResponse); + mockAdapter.onPost(resetPasswordApiUrl, `email_from_support_tools=${testEmail}`).reply(200, expectedResponse); const response = await api.postResetPassword(testEmail); expect(response).toEqual(expectedResponse); });