From e6ceaf2a0b319f31a7769a39ed9a59fa53be1937 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Tue, 3 May 2016 16:21:09 -0400 Subject: [PATCH] Change back to hash urls because they are more offline friendly --- routes/30-auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/30-auth.js b/routes/30-auth.js index 8bb44a2..753f257 100644 --- a/routes/30-auth.js +++ b/routes/30-auth.js @@ -178,10 +178,10 @@ module.exports = function(app, config) { // login page. Otherwise, the primary route function function will be called, // which, in this example, will redirect the user to the home page. router.get('/auth/google/callback', - passport.authenticate('google', { failureRedirect: '/login' }), + passport.authenticate('google', { failureRedirect: '/#/login' }), function(req, res) { var user = req.user; - var redirURL = '/finishgauth/'; + var redirURL = '/#/finishgauth/'; redirURL += user.consumer_secret; redirURL += '/' + user.token_secret; redirURL += '/' + user.consumer_key;