mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Forgot Password endpoint
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user