Fix for custom branding not appearing on login
This commit is contained in:
parent
1c29620c9a
commit
f1da6d5f87
|
@ -14,7 +14,8 @@
|
||||||
$admin.cloud &&
|
$admin.cloud &&
|
||||||
!$admin.disableAccountPortal &&
|
!$admin.disableAccountPortal &&
|
||||||
$admin.accountPortalUrl &&
|
$admin.accountPortalUrl &&
|
||||||
!$admin?.checklist?.sso?.checked
|
!$admin?.checklist?.sso?.checked &&
|
||||||
|
!$admin.checklist.branding
|
||||||
) {
|
) {
|
||||||
window.location.href = $admin.accountPortalUrl
|
window.location.href = $admin.accountPortalUrl
|
||||||
}
|
}
|
||||||
|
|
|
@ -498,6 +498,12 @@ export async function configChecklist(ctx: Ctx) {
|
||||||
|
|
||||||
// They have set up a global user
|
// They have set up a global user
|
||||||
const userExists = await checkAnyUserExists()
|
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 {
|
return {
|
||||||
apps: {
|
apps: {
|
||||||
checked: apps.length > 0,
|
checked: apps.length > 0,
|
||||||
|
@ -519,6 +525,7 @@ export async function configChecklist(ctx: Ctx) {
|
||||||
label: "Set up single sign-on",
|
label: "Set up single sign-on",
|
||||||
link: "/builder/portal/settings/auth",
|
link: "/builder/portal/settings/auth",
|
||||||
},
|
},
|
||||||
|
branding,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue