1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Fix tenant subdomain parsing

This commit is contained in:
Rory Powell 2021-09-30 15:56:33 +01:00
parent 95c251d4db
commit dd1ce5be27
2 changed files with 3 additions and 2 deletions

View file

@ -20,7 +20,7 @@
if (!tenantId.includes("localhost:")) {
// user doesn't have permission to access this tenant - kick them out
if (user?.tenantId !== tenantId) {
if (user && user.tenantId !== tenantId) {
await auth.logout()
await auth.setOrganisation(null)
} else {

View file

@ -22,6 +22,7 @@
$: company = $organisation.company || "Budibase"
$: multiTenancyEnabled = $admin.multiTenancy
$: cloud = $admin.cloud
async function login() {
try {
@ -84,7 +85,7 @@
<ActionButton quiet on:click={() => $goto("./forgot")}>
Forgot password?
</ActionButton>
{#if multiTenancyEnabled}
{#if multiTenancyEnabled && !cloud}
<ActionButton
quiet
on:click={() => {