From 10d35d1df97acf3d952dc5739c38da24645b100d Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Tue, 2 Jun 2015 15:36:56 +0300 Subject: [PATCH] Fix deprecated ExpressJS req.param('provider') >"Deprecated. Use either req.params, req.body or req.query, as applicable." http://expressjs.com/api.html#req.param --- .../controllers/users/users.authentication.server.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fee8ed79ce..c8920bd3a8 100644 --- a/modules/users/server/controllers/users/users.authentication.server.controller.js +++ b/modules/users/server/controllers/users/users.authentication.server.controller.js @@ -177,7 +177,7 @@ exports.saveOAuthUserProfile = function(req, providerUserProfile, done) { */ exports.removeOAuthProvider = function(req, res, next) { var user = req.user; - var provider = req.param('provider'); + var provider = req.params.provider; if (user && provider) { // Delete the additional provider