added check for google key

v1.18.x
psychobunny 12 years ago
parent c113f4151b
commit 5988573d1c

@ -34,7 +34,7 @@ if (config.twitter && config.twitter.key && config.twitter.key.length > 0 && con
login_strategies.push('twitter'); login_strategies.push('twitter');
} }
if (config.google.id.length > 0 && config.google.secret.length > 0) { if (config.google && config.google.id && config.google.id.length > 0 && config.google.secret.length > 0) {
passport.use(new passportGoogle({ passport.use(new passportGoogle({
clientID: config.google.id, clientID: config.google.id,
clientSecret: config.google.secret, clientSecret: config.google.secret,

Loading…
Cancel
Save