summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-05-21 22:41:53 +0800
committerCheng-Han, Wu2016-05-21 22:41:53 +0800
commit900141daff05feeeaae5f537d2f53862b7200651 (patch)
tree888382e4fd13086d17245099e146acefca3a0bba /app.js
parentd74d7bc31b34c7d4565dfe783d2f6748bcc9805c (diff)
Remove unused passport authenticate callback function
Diffstat (limited to 'app.js')
-rw-r--r--app.js15
1 files changed, 5 insertions, 10 deletions
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', {