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", apps: "Create your first app",
smtp: "Set up email", smtp: "Set up email",
adminUser: "Create your first user", adminUser: "Create your first user",
oauth: "Set up OAuth", sso: "Set up Single Sign-On",
} }
</script> </script>

View File

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