diff --git a/controllers/user.js b/controllers/user.js index 590f6e43f1..292f58d095 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -195,8 +195,6 @@ exports.postUpdateProfile = function(req, res, next) { } var user = req.user; if (existingEmail && existingEmail.email != user.email) { - console.log(user.email); - console.log(existingEmail.email) req.flash('errors', { msg: "An account with that email address already exists." }); @@ -208,6 +206,8 @@ exports.postUpdateProfile = function(req, res, next) { } var user = req.user; if (existingUsername && existingUsername.profile.username != user.profile.username) { + console.log(user.profile.username) + console.log(existingUsername.username) console.log(existingUsername.profile.username) console.log(user.profile.username) req.flash('errors', { diff --git a/views/jquery-exercises.jade b/views/jquery-exercises.jade index 02f645f87f..deebfc4a64 100644 --- a/views/jquery-exercises.jade +++ b/views/jquery-exercises.jade @@ -116,7 +116,7 @@ block content