use successRedirect
- the other documented way doesn't redirect.
This commit is contained in:
parent
40afd20e4f
commit
32ef602460
|
@ -357,10 +357,7 @@ module.exports = exports = (log, loga, argv) ->
|
|||
# Twitter
|
||||
app.get('/auth/twitter', passport.authenticate(twitterStrategyName), (req, res) -> )
|
||||
app.get('/auth/twitter/callback',
|
||||
passport.authenticate(twitterStrategyName, { failureRedirect: '/auth/loginDialog'}),
|
||||
(req, res) ->
|
||||
res.redirect('/auth/loginDone')
|
||||
)
|
||||
passport.authenticate(twitterStrategyName, { successRedirect: '/auth/loginDone', failureRedirect: '/auth/loginDialog'}))
|
||||
|
||||
# Google
|
||||
app.get('/auth/google', passport.authenticate(googleStrategyName, { scope: [
|
||||
|
|
Loading…
Reference in New Issue