diff --git a/libs/webServerPaths.js b/libs/webServerPaths.js index 95c9eb0d..90beee5d 100644 --- a/libs/webServerPaths.js +++ b/libs/webServerPaths.js @@ -26,7 +26,9 @@ module.exports = function(s,config,lang,app,io){ twoFactorVerification, ldapLogin, } = require('./auth/utils.js')(s,config,lang) - const googleAuth = require('./auth/google.js')(s,config,lang) + if(config.allowGoogleSignOn){ + require('./auth/google.js')(s,config,lang) + } if(config.productType === 'Pro'){ var LdapAuth = require('ldapauth-fork'); } diff --git a/web/pages/index.ejs b/web/pages/index.ejs index 18e7dc21..68288fe7 100644 --- a/web/pages/index.ejs +++ b/web/pages/index.ejs @@ -131,9 +131,11 @@