Merge pull request #2781 from Budibase/fix/prevent-sso-redirect
prevent SSO configured tenants being redirected to account portal
This commit is contained in:
commit
8eb725bbd9
|
@ -12,7 +12,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// redirect to account portal for authentication in the cloud
|
// redirect to account portal for authentication in the cloud
|
||||||
if (!$auth.user && $admin.cloud && $admin.accountPortalUrl) {
|
if (
|
||||||
|
!$auth.user &&
|
||||||
|
$admin.cloud &&
|
||||||
|
$admin.accountPortalUrl &&
|
||||||
|
!$admin?.checklist?.sso?.checked
|
||||||
|
) {
|
||||||
window.location.href = $admin.accountPortalUrl
|
window.location.href = $admin.accountPortalUrl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue