Skip to content

Commit 9710116

Browse files
committed
이메일 정상화 되었으니 이메일 인증 과정 추가
1 parent fa6e559 commit 9710116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function middleware(request: NextRequest) {
66

77
const userInfo = await getUserInfo()
88

9-
/*if (userInfo !== null &&
9+
if (userInfo !== null &&
1010
userInfo !== -1) {
1111
//이메일 인증이 안된 유저는 리다이렉트
1212
if (!userInfo.emailVerified &&
@@ -15,7 +15,7 @@ export async function middleware(request: NextRequest) {
1515
{
1616
return NextResponse.redirect(new URL('/email-verification', request.url))
1717
}
18-
}*/
18+
}
1919

2020
if (request.nextUrl.pathname.startsWith('/account')) {
2121
if (userInfo === null)

0 commit comments

Comments
 (0)