From 6339714b9fa8096e65c962314818323d8100857f Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 29 Apr 2017 14:00:42 -0400 Subject: [PATCH] fix: Fixed incorrect count of social auth strategies [ci skip] --- server/libs/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/libs/config.js b/server/libs/config.js index 6c8c5562..58f808a3 100644 --- a/server/libs/config.js +++ b/server/libs/config.js @@ -49,7 +49,7 @@ module.exports = (confPaths) => { if (appdata.capabilities.manyAuthProviders) { appconfig.authStrategies = { list: _.filter(appconfig.auth, ['enabled', true]), - socialEnabled: (_.chain(appconfig.auth).omit('local').reject({ enabled: false }).value().length > 0) + socialEnabled: (_.chain(appconfig.auth).omit('local').filter(['enabled', true]).value().length > 0) } if (appconfig.authStrategies.list.length < 1) { console.error(new Error('You must enable at least 1 authentication strategy!'))