Fix tenant subdomain parsing
This commit is contained in:
parent
0f4cb52618
commit
89c9118337
|
@ -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 {
|
||||
|
|
|
@ -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={() => {
|
||||
|
|
Loading…
Reference in New Issue