IO-1794 Rsolve password reset issue.

This commit is contained in:
Patrick Fic
2022-03-29 09:24:09 -07:00
parent 45bd2d3281
commit 80bd2dc6d8

View File

@@ -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);
}