old_contents: "use strict";
  
  var db = require('../../models');
  var config = require('../../config.js');
  var authHelper = require('../../lib/auth-helper');
  
  module.exports = function (app, options) {
  
    app.get('/logout', function(req, res){
      req.logout();
      res.redirect('/');
    });
  
    app.get('/protected',
      authHelper.ensureAuthenticated,
      function(req, res) {
        res.send('protected');
      });
  
    app.get('/auth', function(req, res){
      res.render('./auth/provider_list.ejs');
    });
  
    var authLocalRoutes = require('./local.js')(app, options);
    var authFacebookRoutes = require('./facebook.js')(app, options);
    var authGithubRoutes = require('./github.js')(app, options);
    if (config.FACEBOOK_ENABLED) {
      console.log('Facebook authentication enabled');
      var authFacebookRoutes = require('./facebook.js')(app, options);
    }
    if (config.GITHUB_ENABLED) {
      console.log('Github authentication enabled');
      var authGithubRoutes = require('./github.js')(app, options);
    }
  };
  
  
new_contents: "use strict";
  
  var db = require('../../models');
  var config = require('../../config.js');
  var authHelper = require('../../lib/auth-helper');
  
  module.exports = function (app, options) {
  
    app.get('/logout', function(req, res){
      req.logout();
      res.redirect('/');
    });
  
    app.get('/protected',
      authHelper.ensureAuthenticated,
      function(req, res) {
        res.send('protected');
      });
  
    app.get('/auth', function(req, res){
      res.render('./auth/provider_list.ejs');
    });
  
    if (config.FACEBOOK_ENABLED) {
      console.log('Facebook authentication enabled');
      var authFacebookRoutes = require('./facebook.js')(app, options);
    }
    if (config.GITHUB_ENABLED) {
      console.log('Github authentication enabled');
      var authGithubRoutes = require('./github.js')(app, options);
    }
  
  };
  
  
subject: fix cherry-pick