From b12a3b47ba06a2138fcd357c6b368c1af11941a9 Mon Sep 17 00:00:00 2001 From: Pier-Luc Gagnon Date: Mon, 6 Oct 2014 17:18:29 -0400 Subject: [PATCH] Tiny fixes Removed double requires and unused variables. --- app/controllers/users/users.password.server.controller.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/controllers/users/users.password.server.controller.js b/app/controllers/users/users.password.server.controller.js index f5b1a6b5..352f0a57 100644 --- a/app/controllers/users/users.password.server.controller.js +++ b/app/controllers/users/users.password.server.controller.js @@ -10,7 +10,6 @@ var _ = require('lodash'), User = mongoose.model('User'), config = require('../../../config/config'), nodemailer = require('nodemailer'), - crypto = require('crypto'), async = require('async'), crypto = require('crypto'); @@ -112,7 +111,6 @@ exports.validateResetToken = function(req, res) { exports.reset = function(req, res, next) { // Init Variables var passwordDetails = req.body; - var message = null; async.waterfall([ @@ -189,10 +187,9 @@ exports.reset = function(req, res, next) { /** * Change Password */ -exports.changePassword = function(req, res, next) { +exports.changePassword = function(req, res) { // Init Variables var passwordDetails = req.body; - var message = null; if (req.user) { if (passwordDetails.newPassword) { @@ -245,4 +242,4 @@ exports.changePassword = function(req, res, next) { message: 'User is not signed in' }); } -}; \ No newline at end of file +};