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

Commit

Permalink
Fix deprecated ExpressJS req.param('provider')
Browse files Browse the repository at this point in the history
>"Deprecated. Use either req.params, req.body or req.query, as applicable."
http://expressjs.com/api.html#req.param
  • Loading branch information
simison committed Jun 2, 2015
1 parent 716925b commit 10d35d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10d35d1

Please sign in to comment.