Skip to content

Node.js based forum software built for the modern web

added prompt to passport input for Google SSO

Julian Lamd0f08b4dd40b
diff --git a/src/routes/authentication.js b/src/routes/authentication.js
index 8e1824cad6..62e2c66224 100644
--- a/src/routes/authentication.js
+++ b/src/routes/authentication.js
@@ -52,7 +52,8 @@
loginStrategies.forEach(function(strategy) {
if (strategy.url) {
router.get(strategy.url, passport.authenticate(strategy.name, {
- scope: strategy.scope
+ scope: strategy.scope,
+ prompt: strategy.prompt || undefined
}));
}