Profile information is now correctly retrieved when signing in via google auth
This commit is contained in:
2
app.js
2
app.js
@ -63,7 +63,7 @@ app.post('/contact', contact.postContact);
|
|||||||
app.get('/auth/facebook', passport.authenticate('facebook', { scope: 'email' }));
|
app.get('/auth/facebook', passport.authenticate('facebook', { scope: 'email' }));
|
||||||
app.get('/auth/facebook/callback', passport.authenticate('facebook', { successRedirect: '/', failureRedirect: '/login' }));
|
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' }));
|
app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/', failureRedirect: '/login' }));
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,8 +17,6 @@ block content
|
|||||||
a(href='#venues', data-toggle='tab') Venues
|
a(href='#venues', data-toggle='tab') Venues
|
||||||
li
|
li
|
||||||
a(href='#users', data-toggle='tab') Users
|
a(href='#users', data-toggle='tab') Users
|
||||||
li
|
|
||||||
a(href='#checkins', data-toggle='tab') Checkins
|
|
||||||
|
|
||||||
div.tab-content
|
div.tab-content
|
||||||
#venues.tab-pane.fade.active.in
|
#venues.tab-pane.fade.active.in
|
||||||
@ -63,8 +61,4 @@ block content
|
|||||||
td= checkin.venue.name
|
td= checkin.venue.name
|
||||||
td #{checkin.venue.location.address}, #{checkin.venue.location.city}, #{checkin.venue.location.state}
|
td #{checkin.venue.location.address}, #{checkin.venue.location.city}, #{checkin.venue.location.state}
|
||||||
td= checkin.venue.categories[0].shortName
|
td= checkin.venue.categories[0].shortName
|
||||||
td= checkin.venue.stats.checkinsCount
|
td= checkin.venue.stats.checkinsCount
|
||||||
|
|
||||||
|
|
||||||
#checkins.tab-pane.fade
|
|
||||||
p TODO: Checkins
|
|
Reference in New Issue
Block a user