exports.index = function (req, res) {
  if (req.isAuthenticated()) {
    console.dir(req.user);
    res.render('dashboard');
  } else {
    res.render('index', { 
      message: req.flash('message')
    });
  }
};

exports.contact = function (req, res) {
  res.render('contact', {
    menu: 'contact'
  });
};

exports.login = function (req, res) {
  res.redirect('/auth/github');
};
exports.index = function (req, res) {
  if (req.isAuthenticated()) {
    res.render('dashboard');
  } else {
    res.render('index', { 
      message: req.flash('message')
    });
  }
};

exports.contact = function (req, res) {
  res.render('contact', {
    menu: 'contact'
  });
};

exports.login = function (req, res) {
  res.redirect('/auth/github');
};
Remove debug code