mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-06 04:01:04 +01:00
Merge pull request #8 from viczam/patch-1
added permission request for email
This commit is contained in:
@@ -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', {
|
||||
@@ -50,4 +51,4 @@ module.exports = function(app) {
|
||||
|
||||
// Finish by binding the user middleware
|
||||
app.param('userId', users.userByID);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user