From 247c7f276257ebd2496e32bc9da24f0697f1394e Mon Sep 17 00:00:00 2001 From: EGOIST Date: Tue, 3 May 2022 00:20:23 +0800 Subject: [PATCH] oops --- app/routes/api/login.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes/api/login.ts b/app/routes/api/login.ts index 34ec4d9b..d92ef4ed 100644 --- a/app/routes/api/login.ts +++ b/app/routes/api/login.ts @@ -78,10 +78,11 @@ export const loader: LoaderFunction = async ({ request }) => { console.log("login with token", accessToken.token) } + // Custom domain const nextUrl = new URL(data.next) if ( nextUrl.host !== OUR_DOMAIN && - nextUrl.hostname.endsWith(`.${OUR_DOMAIN}`) + !nextUrl.hostname.endsWith(`.${OUR_DOMAIN}`) ) { // Check if the host belong to a site const existing = await prisma.domain.findUnique({