Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from pauloconnor/load_modules

Only load modules if configured
  • Loading branch information...
commit f75fef75779901165a9dfa80cea6a173fe89e3a5 2 parents 07ace7f + 5e41f23
@mnutt mnutt authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 app.js
View
8 app.js
@@ -12,8 +12,12 @@ var proxy = new Proxy(conf.proxyTo.host, conf.proxyTo.port);
var proxyMiddleware = proxy.middleware();
// Set up our auth strategies
-github.setup(everyauth);
-google.setup(everyauth);
+if (conf.modules.github) {
+ github.setup(everyauth);
+}
+if (conf.modules.google) {
+ google.setup(everyauth);
+}
function userCanAccess(req) {
var auth = req.session.auth;
Please sign in to comment.
Something went wrong with that request. Please try again.