diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 11:33:26 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-15 11:33:26 +0200 |
commit | 9f8dcddf36d836c09c618845c90a2473421e7fbf (patch) | |
tree | 180f01fe356a35133f82c74a5a12157b42d87c4c | |
parent | removed logging (diff) | |
download | Divid-9f8dcddf36d836c09c618845c90a2473421e7fbf.tar.gz |
facebook now uses users.authCallback as callback, like it should.
-rw-r--r-- | routes.js | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); |