aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/controllers/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/users.js')
-rw-r--r--controllers/users.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/controllers/users.js b/controllers/users.js
index f3568a4..477a85a 100644
--- a/controllers/users.js
+++ b/controllers/users.js
@@ -83,6 +83,9 @@ exports.create = function(req, res) {
*/
exports.authCallback = function(req, res, next) {
+ // if the user hasn't registered an email, we need to do so
+ if (!req.user.email || req.user.email === 'undefined') return res.redirect('/registerEmail');
+
res.redirect('/dashboard');
}