We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7922d7f commit b3fbe43Copy full SHA for b3fbe43
2 files changed
controllers/strategies.json
@@ -19,7 +19,7 @@
19
"oauth": true,
20
"readonly": false
21
},
22
- "reddit-commonjs": {
+ "reddit": {
23
"name": "Reddit",
24
25
"readonly": true
libs/passportLoader.js
@@ -23,7 +23,9 @@ exports.strategyInstances = nil();
// Notice it is general so it can load any passport strategy
exports.loadPassport = function (aStrategy) {
var requireStr = 'passport-' + aStrategy.name
26
- + (aStrategy.name === 'google' ? '-oauth20' : (aStrategy.name === 'gitlab' ? '2' : ''));
+ + (aStrategy.name === 'google' ? '-oauth20'
27
+ : (aStrategy.name === 'gitlab' ? '2'
28
+ : (aStrategy.name === 'reddit' ? '-commonjs' : '')));
29
var instance = null;
30
var PassportStrategy = null;
31
0 commit comments