Permalink
Browse files

Only load modules if configured

  • Loading branch information...
1 parent a4d3a45 commit 5e41f2307e9a162744f02779537616a0f3be1d00 @pauloconnor pauloconnor committed Nov 14, 2013
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;

0 comments on commit 5e41f23

Please sign in to comment.