aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes.js')
-rw-r--r--routes.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/routes.js b/routes.js
index 7abe210..00a328e 100644
--- a/routes.js
+++ b/routes.js
@@ -36,10 +36,7 @@ module.exports = function(app, passport, auth) {
app.post('/test', users.signin);
app.get('/auth/facebook', passport.authenticate('facebook', { failureRedirect: '/test' }), users.signin);
-
- app.get('/auth/facebook/callback', passport.authenticate('facebook', { failureRedirect: '/test' }), function(req, res) {
- res.redirect('/dashboard');
- });
+ app.get('/auth/facebook/callback', passport.authenticate('facebook', { failureRedirect: '/test' }), users.authCallback);
app.get('/auth/twitter', passport.authenticate('twitter', { failureRedirect: '/test' }), users.signin);
app.get('/auth/twitter/callback', passport.authenticate('twitter', { failureRedirect: '/test' }), users.authCallback);