We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa6e559 commit 9710116Copy full SHA for 9710116
src/middleware.ts
@@ -6,7 +6,7 @@ export async function middleware(request: NextRequest) {
6
7
const userInfo = await getUserInfo()
8
9
- /*if (userInfo !== null &&
+ if (userInfo !== null &&
10
userInfo !== -1) {
11
//이메일 인증이 안된 유저는 리다이렉트
12
if (!userInfo.emailVerified &&
@@ -15,7 +15,7 @@ export async function middleware(request: NextRequest) {
15
{
16
return NextResponse.redirect(new URL('/email-verification', request.url))
17
}
18
- }*/
+ }
19
20
if (request.nextUrl.pathname.startsWith('/account')) {
21
if (userInfo === null)
0 commit comments