Update config checklist to handle multiple sso sources
This commit is contained in:
parent
dd306d59c5
commit
0973394208
|
@ -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>
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue