added successredirect on google auth

This commit is contained in:
Sahat Yalkabov
2013-11-22 10:23:54 -05:00
parent b618fda00f
commit 378760377b
2 changed files with 4 additions and 0 deletions

1
app.js
View File

@ -74,6 +74,7 @@ app.get('/auth/google', passport.authenticate('google', {
});
app.get('/auth/google/callback', passport.authenticate('google', {
successRedirect: '/',
failureRedirect: '/login'
}), function (req, res) {
res.redirect('/');