Skip to content

Commit

Permalink
Merge pull request #8 from viczam/patch-1
Browse files Browse the repository at this point in the history
added permission request for email
  • Loading branch information
amoshaviv committed Mar 17, 2014
2 parents 6705319 + feaef31 commit 994a220
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = function(app) {

// Setting the facebook oauth routes
app.get('/auth/facebook', passport.authenticate('facebook', {
scope: ['email'],
failureRedirect: '/#!/signin'
}), users.signin);
app.get('/auth/facebook/callback', passport.authenticate('facebook', {
Expand Down Expand Up @@ -50,4 +51,4 @@ module.exports = function(app) {

// Finish by binding the user middleware
app.param('userId', users.userByID);
};
};

0 comments on commit 994a220

Please sign in to comment.