Remove noisy logs, add new camp counselors and add github auth back in

This commit is contained in:
Michael Q Larson
2015-01-04 12:26:45 -08:00
parent ba800ee54b
commit f243367774
5 changed files with 17 additions and 15 deletions

View File

@@ -26,7 +26,6 @@ passport.deserializeUser(function(id, done) {
User.findOne({
_id: id
}, '-password', function(err, user) {
console.log(user);
done(err, user);
});
});
@@ -480,11 +479,9 @@ function isAuthenticated(req, res, next) {
function hasEmail(req, res) {
if (req.user) {
console.log('started');
if (req.user.email) {
res.redirect('/');
} else {
console.log('hit');
req.flash('info', {
msg: 'Please add your email address before starting our challenges.'
});