1
0
Fork 0
mirror of synced 2024-07-20 21:55:54 +12:00

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

View file

@ -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
} }
}) })