From 900141daff05feeeaae5f537d2f53862b7200651 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Sat, 21 May 2016 22:41:53 +0800 Subject: Remove unused passport authenticate callback function --- app.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'app.js') diff --git a/app.js b/app.js index 1565ffb5..5e75ac59 100644 --- a/app.js +++ b/app.js @@ -251,8 +251,7 @@ app.post("/temp", urlencodedParser, function (req, res) { //facebook auth if (config.facebook) { app.get('/auth/facebook', - passport.authenticate('facebook'), - function (req, res) {}); + passport.authenticate('facebook')); //facebook auth callback app.get('/auth/facebook/callback', passport.authenticate('facebook', { @@ -265,8 +264,7 @@ if (config.facebook) { //twitter auth if (config.twitter) { app.get('/auth/twitter', - passport.authenticate('twitter'), - function (req, res) {}); + passport.authenticate('twitter')); //twitter auth callback app.get('/auth/twitter/callback', passport.authenticate('twitter', { @@ -279,8 +277,7 @@ if (config.twitter) { //github auth if (config.github) { app.get('/auth/github', - passport.authenticate('github'), - function (req, res) {}); + passport.authenticate('github')); //github auth callback app.get('/auth/github/callback', passport.authenticate('github', { @@ -295,8 +292,7 @@ if (config.github) { //gitlab auth if (config.gitlab) { app.get('/auth/gitlab', - passport.authenticate('gitlab'), - function (req, res) {}); + passport.authenticate('gitlab')); //gitlab auth callback app.get('/auth/gitlab/callback', passport.authenticate('gitlab', { @@ -311,8 +307,7 @@ if (config.gitlab) { //dropbox auth if (config.dropbox) { app.get('/auth/dropbox', - passport.authenticate('dropbox-oauth2'), - function (req, res) {}); + passport.authenticate('dropbox-oauth2')); //dropbox auth callback app.get('/auth/dropbox/callback', passport.authenticate('dropbox-oauth2', { -- cgit v1.2.3