From 80bd2dc6d834c919c825f24cd9f56c5522075a2d Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 29 Mar 2022 09:24:09 -0700 Subject: [PATCH] IO-1794 Rsolve password reset issue. --- client/src/redux/user/user.sagas.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/redux/user/user.sagas.js b/client/src/redux/user/user.sagas.js index 2b14340fc..3aeafc751 100644 --- a/client/src/redux/user/user.sagas.js +++ b/client/src/redux/user/user.sagas.js @@ -7,6 +7,7 @@ import { confirmPasswordReset, signInWithEmailAndPassword, signOut, + sendPasswordResetEmail, } from "firebase/auth"; import { doc } from "firebase/firestore"; import i18next from "i18next"; @@ -223,16 +224,16 @@ export function* signInSuccessSaga({ payload }) { export function* onSendPasswordResetStart() { yield takeLatest( UserActionTypes.SEND_PASSWORD_RESET_EMAIL_START, - sendPasswordResetEmail + sendPasswordResetEmailSaga ); yield takeLatest( UserActionTypes.SEND_PASSWORD_RESET_EMAIL_START_AGAIN, - sendPasswordResetEmail + sendPasswordResetEmailSaga ); } -export function* sendPasswordResetEmail({ payload }) { +export function* sendPasswordResetEmailSaga({ payload }) { try { - yield sendPasswordResetEmail(payload, { + yield sendPasswordResetEmail(auth, payload, { url: "https://imex.online/passwordreset", }); @@ -269,7 +270,7 @@ export function* SetAuthLevelFromShopDetails({ payload }) { const userEmail = yield select((state) => state.user.currentUser.email); try { console.log("Setting shop timezone."); - // moment.tz.setDefault(payload.timezone); + // moment.tz.setDefault(payload.timezone); } catch (error) { console.log(error); }