Remove unused passport authenticate callback function

This commit is contained in:
Cheng-Han, Wu 2016-05-21 22:41:53 +08:00
parent d74d7bc31b
commit 900141daff

15
app.js
View file

@ -251,8 +251,7 @@ app.post("/temp", urlencodedParser, function (req, res) {
//facebook auth //facebook auth
if (config.facebook) { if (config.facebook) {
app.get('/auth/facebook', app.get('/auth/facebook',
passport.authenticate('facebook'), passport.authenticate('facebook'));
function (req, res) {});
//facebook auth callback //facebook auth callback
app.get('/auth/facebook/callback', app.get('/auth/facebook/callback',
passport.authenticate('facebook', { passport.authenticate('facebook', {
@ -265,8 +264,7 @@ if (config.facebook) {
//twitter auth //twitter auth
if (config.twitter) { if (config.twitter) {
app.get('/auth/twitter', app.get('/auth/twitter',
passport.authenticate('twitter'), passport.authenticate('twitter'));
function (req, res) {});
//twitter auth callback //twitter auth callback
app.get('/auth/twitter/callback', app.get('/auth/twitter/callback',
passport.authenticate('twitter', { passport.authenticate('twitter', {
@ -279,8 +277,7 @@ if (config.twitter) {
//github auth //github auth
if (config.github) { if (config.github) {
app.get('/auth/github', app.get('/auth/github',
passport.authenticate('github'), passport.authenticate('github'));
function (req, res) {});
//github auth callback //github auth callback
app.get('/auth/github/callback', app.get('/auth/github/callback',
passport.authenticate('github', { passport.authenticate('github', {
@ -295,8 +292,7 @@ if (config.github) {
//gitlab auth //gitlab auth
if (config.gitlab) { if (config.gitlab) {
app.get('/auth/gitlab', app.get('/auth/gitlab',
passport.authenticate('gitlab'), passport.authenticate('gitlab'));
function (req, res) {});
//gitlab auth callback //gitlab auth callback
app.get('/auth/gitlab/callback', app.get('/auth/gitlab/callback',
passport.authenticate('gitlab', { passport.authenticate('gitlab', {
@ -311,8 +307,7 @@ if (config.gitlab) {
//dropbox auth //dropbox auth
if (config.dropbox) { if (config.dropbox) {
app.get('/auth/dropbox', app.get('/auth/dropbox',
passport.authenticate('dropbox-oauth2'), passport.authenticate('dropbox-oauth2'));
function (req, res) {});
//dropbox auth callback //dropbox auth callback
app.get('/auth/dropbox/callback', app.get('/auth/dropbox/callback',
passport.authenticate('dropbox-oauth2', { passport.authenticate('dropbox-oauth2', {