From c1a0563ee528619f8ec94ed519073e841d6ae0eb Mon Sep 17 00:00:00 2001 From: Zouheir Layine <58786497+zlayine@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:05:49 +0300 Subject: [PATCH] fix reset password (#42) --- resources/js/components/pages/auth/RequestResetPassword.vue | 6 +++++- resources/js/util/index.ts | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/js/components/pages/auth/RequestResetPassword.vue b/resources/js/components/pages/auth/RequestResetPassword.vue index b975885..575b019 100644 --- a/resources/js/components/pages/auth/RequestResetPassword.vue +++ b/resources/js/components/pages/auth/RequestResetPassword.vue @@ -76,7 +76,11 @@ const requestReset = async () => { if (!(await isValid())) return; isLoading.value = true; - await AuthApi.requestPasswordReset(email.value); + try { + await AuthApi.requestPasswordReset(email.value); + } catch { + // do nothing + } snackbar.success({ title: "If an account with this email exists, you'll receive an email shortly with information on resetting your password.", save: false, diff --git a/resources/js/util/index.ts b/resources/js/util/index.ts index 5d467b0..0ff1567 100644 --- a/resources/js/util/index.ts +++ b/resources/js/util/index.ts @@ -150,7 +150,6 @@ export const wcRequiredNamespaces = (network: string) => { }; }; - export const wcOptions: WalletConnectModalSignOptions = { projectId: wcProjectId, metadata: getAppMetadata(),