1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

Fix for custom branding not appearing on login

This commit is contained in:
Peter Clement 2024-02-09 15:26:57 +00:00
parent 1c29620c9a
commit f1da6d5f87
2 changed files with 9 additions and 1 deletions

View file

@ -14,7 +14,8 @@
$admin.cloud &&
!$admin.disableAccountPortal &&
$admin.accountPortalUrl &&
!$admin?.checklist?.sso?.checked
!$admin?.checklist?.sso?.checked &&
!$admin.checklist.branding
) {
window.location.href = $admin.accountPortalUrl
}

View file

@ -498,6 +498,12 @@ export async function configChecklist(ctx: Ctx) {
// They have set up a global user
const userExists = await checkAnyUserExists()
// They have set up branding
const configDoc = await configs.getSettingsConfigDoc()
const config = configDoc.config
const branding = await pro.branding.getBrandingConfig(config)
return {
apps: {
checked: apps.length > 0,
@ -519,6 +525,7 @@ export async function configChecklist(ctx: Ctx) {
label: "Set up single sign-on",
link: "/builder/portal/settings/auth",
},
branding,
}
}
)