Update config checklist to handle multiple sso sources

This commit is contained in:
Rory Powell 2021-07-13 17:30:17 +01:00
parent dd306d59c5
commit 0973394208
2 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@
apps: "Create your first app",
smtp: "Set up email",
adminUser: "Create your first user",
oauth: "Set up OAuth",
sso: "Set up Single Sign-On",
}
</script>

View File

@ -206,7 +206,7 @@ exports.configChecklist = async function (ctx) {
})
// They have set up Google Auth
const oauthConfig = await getScopedFullConfig(db, {
const googleConfig = await getScopedFullConfig(db, {
type: Configs.GOOGLE,
})
@ -226,8 +226,7 @@ exports.configChecklist = async function (ctx) {
apps: appDbNames.length,
smtp: !!smtpConfig,
adminUser,
oauth: !!oauthConfig,
oidc: !!oidcConfig,
sso: !!googleConfig || !!oidcConfig
}
} catch (err) {
ctx.throw(err.status, err)