forgot password fixes

This commit is contained in:
sidharth 2022-01-19 18:10:55 +05:30
parent a66b164c8f
commit 45f251918c
1 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ function doResetPassword(resetOne) { //userId, newPassword, token
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ "email": "", "resetToken": resetOne.token, "newPassword": resetOne.newPassword }) body: JSON.stringify({ "email": "", "resetToken": resetOne.token, "newPassword": resetOne.newPassword })
}; };
return fetch(`${vueAppMagenotApiUrl}/rest/V1/customers/resetPassword`, requestOptions).then(handleResponse); return fetch(`${vueAppMagenotApiUrl}/rest/crn_retailer/V1/customers/resetPassword`, requestOptions).then(handleResponse);
} }
function doForgotPassword(forgot) { function doForgotPassword(forgot) {
@ -39,11 +39,11 @@ function doForgotPassword(forgot) {
body: JSON.stringify({ body: JSON.stringify({
"email": forgot.email, "email": forgot.email,
"template": "email_reset", "template": "email_reset",
"websiteId": 1 "websiteId": 2
}) })
}; };
return fetch(`${vueAppMagenotApiUrl}/rest/V1/customers/password`, requestOptions).then(handleResponse); return fetch(`${vueAppMagenotApiUrl}/rest/crn_retailer/V1/customers/password`, requestOptions).then(handleResponse);
} }
/*function doconfirmEmail(token) { /*function doconfirmEmail(token) {
@ -88,7 +88,7 @@ function doSignUp(registration) {
// console.log(registration); // console.log(registration);
return fetch(`${vueAppMagenotApiUrl}/rest/V1/customers`, requestOptions).then(handleResponse); return fetch(`${vueAppMagenotApiUrl}/rest/crn_retailer/V1/customers`, requestOptions).then(handleResponse);
} }
/* eslint-disable no-alert, no-console , no-debugger */ /* eslint-disable no-alert, no-console , no-debugger */
export const doUpdateSubscription = meWrapRequest((one) => { export const doUpdateSubscription = meWrapRequest((one) => {
@ -110,7 +110,7 @@ export const doUpdateSubscription = meWrapRequest((one) => {
} }
}) })
}; };
return fetch(`${vueAppMagenotApiUrl}/rest/V1/customers/me`, requestOptions) return fetch(`${vueAppMagenotApiUrl}/rest/crn_retailer/V1/customers/me`, requestOptions)
}); });
////////////////// dummy api ////////////////// ////////////////// dummy api //////////////////
/*async function doSignUp(firstName, lastName, email, password) { /*async function doSignUp(firstName, lastName, email, password) {