Skip to content

Commit

Permalink
resolved password not resetting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourabh782 committed Oct 15, 2024
1 parent 3ce4661 commit cd03f57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit cd03f57

Please sign in to comment.