Log a warning when a user logs in but doesn't have an email address in the profile controller.

This commit is contained in:
Simo Kinnunen
2014-11-19 12:06:30 +09:00
parent d1c200eef8
commit 860158b961

View File

@@ -43,6 +43,7 @@ module.exports = function(options) {
}))
}
else {
log.warn('Missing email in profile', req.user)
res.redirect('/auth/oauth/')
}
}