Merge pull request #2781 from Budibase/fix/prevent-sso-redirect

prevent SSO configured tenants being redirected to account portal
This commit is contained in:
Martin McKeaveney 2021-09-29 10:44:42 +01:00 committed by GitHub
commit 8eb725bbd9
1 changed files with 6 additions and 1 deletions

View File

@ -12,7 +12,12 @@
}
// 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
}
})