Browse Source
Merge pull request #2781 from Budibase/fix/prevent-sso-redirect
prevent SSO configured tenants being redirected to account portal
pull/2786/head
Martin McKeaveney
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
packages/builder/src/pages/builder/auth/_layout.svelte
|
|
|
@ -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 |
|
|
|
} |
|
|
|
}) |
|
|
|
|