From cd03f573765acb662f37ce5118173c644efd1c09 Mon Sep 17 00:00:00 2001 From: Sourabh782 Date: Tue, 15 Oct 2024 08:52:55 +0530 Subject: [PATCH] resolved password not resetting issue --- src/app/layout.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c0a15e9..27edf1f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -65,8 +65,7 @@ export default async function RootLayout({ const pathname = h.get("x-current-path"); if (session) { - console.log(session) - if (!session.user?.emailVerified) { + if (!session.user.emailVerified) { if (!pathname!.includes("/auth")) { redirect("/auth/verify"); }