From 0fcc76750f7a522b1923ba63819927e7b2233138 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Sat, 30 Nov 2013 01:55:38 -0500 Subject: [PATCH] Profile information is now correctly retrieved when signing in via google auth --- app.js | 2 +- views/api/foursquare.jade | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 091018bca5..e6a7636d60 100755 --- a/app.js +++ b/app.js @@ -63,7 +63,7 @@ app.post('/contact', contact.postContact); app.get('/auth/facebook', passport.authenticate('facebook', { scope: 'email' })); app.get('/auth/facebook/callback', passport.authenticate('facebook', { successRedirect: '/', failureRedirect: '/login' })); -app.get('/auth/google', passport.authenticate('google', { scope: 'email' })); +app.get('/auth/google', passport.authenticate('google', { scope: 'profile email' })); app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/', failureRedirect: '/login' })); diff --git a/views/api/foursquare.jade b/views/api/foursquare.jade index 18571ef18f..df71c8773b 100644 --- a/views/api/foursquare.jade +++ b/views/api/foursquare.jade @@ -17,8 +17,6 @@ block content a(href='#venues', data-toggle='tab') Venues li a(href='#users', data-toggle='tab') Users - li - a(href='#checkins', data-toggle='tab') Checkins div.tab-content #venues.tab-pane.fade.active.in @@ -63,8 +61,4 @@ block content td= checkin.venue.name td #{checkin.venue.location.address}, #{checkin.venue.location.city}, #{checkin.venue.location.state} td= checkin.venue.categories[0].shortName - td= checkin.venue.stats.checkinsCount - - - #checkins.tab-pane.fade - p TODO: Checkins + td= checkin.venue.stats.checkinsCount \ No newline at end of file