diff --git a/modules/articles/server/controllers/articles.server.controller.js b/modules/articles/server/controllers/articles.server.controller.js index d9c9b45e53..a50b1edf75 100644 --- a/modules/articles/server/controllers/articles.server.controller.js +++ b/modules/articles/server/controllers/articles.server.controller.js @@ -3,8 +3,7 @@ /** * Module dependencies. */ -var _ = require('lodash'), - path = require('path'), +var path = require('path'), mongoose = require('mongoose'), Article = mongoose.model('Article'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')); diff --git a/modules/users/server/config/strategies/facebook.js b/modules/users/server/config/strategies/facebook.js index dfec829c79..ed03ce267a 100644 --- a/modules/users/server/config/strategies/facebook.js +++ b/modules/users/server/config/strategies/facebook.js @@ -4,7 +4,6 @@ * Module dependencies. */ var passport = require('passport'), - url = require('url'), FacebookStrategy = require('passport-facebook').Strategy, users = require('../../controllers/users.server.controller'); diff --git a/modules/users/server/config/strategies/github.js b/modules/users/server/config/strategies/github.js index 228fdd6915..e4fa84e99a 100644 --- a/modules/users/server/config/strategies/github.js +++ b/modules/users/server/config/strategies/github.js @@ -4,7 +4,6 @@ * Module dependencies. */ var passport = require('passport'), - url = require('url'), GithubStrategy = require('passport-github').Strategy, users = require('../../controllers/users.server.controller'); diff --git a/modules/users/server/config/strategies/google.js b/modules/users/server/config/strategies/google.js index 1c095763cc..bd4df63f87 100644 --- a/modules/users/server/config/strategies/google.js +++ b/modules/users/server/config/strategies/google.js @@ -4,7 +4,6 @@ * Module dependencies. */ var passport = require('passport'), - url = require('url'), GoogleStrategy = require('passport-google-oauth').OAuth2Strategy, users = require('../../controllers/users.server.controller'); diff --git a/modules/users/server/config/strategies/linkedin.js b/modules/users/server/config/strategies/linkedin.js index a3c97d2440..220269cf48 100644 --- a/modules/users/server/config/strategies/linkedin.js +++ b/modules/users/server/config/strategies/linkedin.js @@ -4,7 +4,6 @@ * Module dependencies. */ var passport = require('passport'), - url = require('url'), LinkedInStrategy = require('passport-linkedin').Strategy, users = require('../../controllers/users.server.controller'); diff --git a/modules/users/server/config/strategies/twitter.js b/modules/users/server/config/strategies/twitter.js index b7d46435b7..6a668ac17d 100644 --- a/modules/users/server/config/strategies/twitter.js +++ b/modules/users/server/config/strategies/twitter.js @@ -4,7 +4,6 @@ * Module dependencies. */ var passport = require('passport'), - url = require('url'), TwitterStrategy = require('passport-twitter').Strategy, users = require('../../controllers/users.server.controller'); 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 2998a836a2..fee8ed79ce 100644 --- a/modules/users/server/controllers/users/users.authentication.server.controller.js +++ b/modules/users/server/controllers/users/users.authentication.server.controller.js @@ -3,8 +3,7 @@ /** * Module dependencies. */ -var _ = require('lodash'), - path = require('path'), +var path = require('path'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), mongoose = require('mongoose'), passport = require('passport'), 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 93fdda0632..653dbfe372 100644 --- a/modules/users/server/controllers/users/users.password.server.controller.js +++ b/modules/users/server/controllers/users/users.password.server.controller.js @@ -3,12 +3,10 @@ /** * Module dependencies. */ -var _ = require('lodash'), - path = require('path'), +var path = require('path'), config = require(path.resolve('./config/config')), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), mongoose = require('mongoose'), - passport = require('passport'), User = mongoose.model('User'), nodemailer = require('nodemailer'), async = require('async'), 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 ec2ad9c999..63e18e8705 100644 --- a/modules/users/server/controllers/users/users.profile.server.controller.js +++ b/modules/users/server/controllers/users/users.profile.server.controller.js @@ -8,7 +8,6 @@ var _ = require('lodash'), path = require('path'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), mongoose = require('mongoose'), - passport = require('passport'), User = mongoose.model('User'); /**