diff --git a/modules/users/server/controllers/users/users.authentication.server.controller.js b/modules/users/server/controllers/users/users.authentication.server.controller.js index 4c29bd661b..7341e93140 100644 --- a/modules/users/server/controllers/users/users.authentication.server.controller.js +++ b/modules/users/server/controllers/users/users.authentication.server.controller.js @@ -22,11 +22,8 @@ exports.signup = function (req, res) { // For security measurement we remove the roles from the req.body object delete req.body.roles; - // Init Variables + // Init user and add missing fields var user = new User(req.body); - var message = null; - - // Add missing user fields user.provider = 'local'; user.displayName = user.firstName + ' ' + user.lastName; diff --git a/modules/users/server/controllers/users/users.password.server.controller.js b/modules/users/server/controllers/users/users.password.server.controller.js index fe83bec2aa..90de01ceb0 100644 --- a/modules/users/server/controllers/users/users.password.server.controller.js +++ b/modules/users/server/controllers/users/users.password.server.controller.js @@ -122,7 +122,6 @@ exports.validateResetToken = function (req, res) { exports.reset = function (req, res, next) { // Init Variables var passwordDetails = req.body; - var message = null; async.waterfall([ diff --git a/modules/users/server/controllers/users/users.profile.server.controller.js b/modules/users/server/controllers/users/users.profile.server.controller.js index 254b1804ed..e290a17c17 100644 --- a/modules/users/server/controllers/users/users.profile.server.controller.js +++ b/modules/users/server/controllers/users/users.profile.server.controller.js @@ -55,7 +55,6 @@ exports.update = function (req, res) { */ exports.changeProfilePicture = function (req, res) { var user = req.user; - var message = null; var upload = multer(config.uploads.profileUpload).single('newProfilePicture'); var profileUploadFileFilter = require(path.resolve('./config/lib/multer')).profileUploadFileFilter;