Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Change back to hash urls because they are more offline friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed May 3, 2016
1 parent a6fb874 commit e6ceaf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/30-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e6ceaf2

Please sign in to comment.