You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -82,16 +82,6 @@ export async function GET(req: NextRequest) {
82
82
)
83
83
}
84
84
85
-
// Check if user's email is verified
86
-
if(!userData[0].emailVerified){
87
-
returnNextResponse.redirect(
88
-
newURL(
89
-
`/invite/invite-error?reason=email-not-verified&details=${encodeURIComponent(`You must verify your email address (${userData[0].email}) before accepting invitations.`)}`,
90
-
env.NEXT_PUBLIC_APP_URL||'https://sim.ai'
91
-
)
92
-
)
93
-
}
94
-
95
85
// Verify the email matches the current user
96
86
if(orgInvitation.email!==session.user.email){
97
87
returnNextResponse.redirect(
@@ -137,14 +127,21 @@ export async function GET(req: NextRequest) {
0 commit comments