Forgot Password endpoint

This commit is contained in:
Belen Curcio
2016-11-17 11:43:10 -03:00
parent c967587b95
commit a2dd08fc98
+1 -1
View File
@@ -86,7 +86,7 @@ const forgotPassowordFailure = () => ({type: actions.FETCH_FORGOT_PASSWORD_FAILU
export const fetchForgotPassword = () => dispatch => {
dispatch(forgotPassowordRequest());
fetch(`${base}/forgot`, getInit('POST'))
fetch(`${base}/user/request-password-reset`, getInit('POST'))
.then(handleResp)
.then(() => dispatch(forgotPassowordSuccess()))
.catch(error => dispatch(forgotPassowordFailure(error)));