From 7d055c7860111a53d9b18ccf48f622ad6a4c325c Mon Sep 17 00:00:00 2001 From: Md-Rubel-Ahmed-Rana Date: Sun, 7 Jul 2024 01:41:38 +0600 Subject: [PATCH] Debugg console pointed --- frontend/src/components/pages/resetPassword/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/pages/resetPassword/index.tsx b/frontend/src/components/pages/resetPassword/index.tsx index 3849087..12c1bc4 100644 --- a/frontend/src/components/pages/resetPassword/index.tsx +++ b/frontend/src/components/pages/resetPassword/index.tsx @@ -74,6 +74,7 @@ const ResetPasswordPage = () => { const params = new URLSearchParams(paths.split("?")[1]); const userId = params.get("userId"); const token = params.get("token") as string; + console.log({ userId, token }); if (token) { try { jwt.verify( @@ -83,6 +84,7 @@ const ResetPasswordPage = () => { setUserId(userId); } catch (error) { + console.log({ error }); setTokenError( "The token is expired or invalid. Please request a new password reset." ); @@ -90,6 +92,8 @@ const ResetPasswordPage = () => { } }, [router]); + console.log({ tokenError }); + const password = watch("password"); if (tokenError) {