Fix various bugs

This commit is contained in:
Owen
2025-10-13 20:00:43 -07:00
parent 244d05adb1
commit cd8062ada3
6 changed files with 13 additions and 5 deletions

View File

@@ -69,6 +69,9 @@ export default async function OrgAuthPage(props: {
} catch (e) {}
if (!loginPage) {
console.debug(
`No login page found for host ${host}, redirecting to dashboard`
);
redirect(env.app.dashboardUrl);
}
@@ -90,6 +93,9 @@ export default async function OrgAuthPage(props: {
: subscriptionStatus?.tier === TierId.STANDARD;
if (build === "saas" && !subscribed) {
console.log(
`Org ${loginPage.orgId} is not subscribed, redirecting to dashboard`
);
redirect(env.app.dashboardUrl);
}
@@ -116,6 +122,7 @@ export default async function OrgAuthPage(props: {
}
}
} else {
console.log(`Host ${host} is the same`);
redirect(env.app.dashboardUrl);
}