Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Tiny fixes
Browse files Browse the repository at this point in the history
Removed double requires and unused variables.
  • Loading branch information
Nepoxx committed Oct 6, 2014
1 parent 2c319c5 commit b12a3b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/controllers/users/users.password.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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([

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -245,4 +242,4 @@ exports.changePassword = function(req, res, next) {
message: 'User is not signed in'
});
}
};
};

0 comments on commit b12a3b4

Please sign in to comment.