1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13: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 6e576f7c23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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