make twitter photo higher resolution on login. remove twitter redirect middleware

This commit is contained in:
Michael Q Larson
2015-01-09 13:02:00 -08:00
parent a272d6fd4f
commit d46ac080dd
2 changed files with 4 additions and 21 deletions

4
app.js
View File

@ -293,13 +293,11 @@ app.get('/auth/twitter', passport.authenticate('twitter'));
app.get(
'/auth/twitter/callback',
passport.authenticate('twitter', {
successRedirect: '/auth/twitter/middle',
successRedirect: '/',
failureRedirect: '/login'
})
);
app.get('/auth/twitter/middle', passportConf.hasEmail);
app.get(
'/auth/linkedin',
passport.authenticate('linkedin', {