1hella / nodejs-voting-app

A web application where users can log in, create polls, and vote on polls other users have created.
23 stars 14 forks source link

Facebook login does not send email ID #3

Open freelance-work2019 opened 5 years ago

freelance-work2019 commented 5 years ago

It does not send email ID when login with FB. Please add this line. profileFields: ['id', 'emails', 'name'] in the passport.js Thank you.

1hella commented 5 years ago

Thanks for the tip! I’ve been meaning to look into the FB issue but have been busy with school.

freelance-work2019 commented 5 years ago

Ok For removing deprecated warnings, we need to do 2 things. For removing this: the server/replset/mongos options are deprecated, all their options are supported at the top level of the options object At the config/environment/index.js, mongodb' option needs to be changed as top level json like following:

  // MongoDB connection options
  mongo: {
    db: {
      safe: true
    }    
  },

For removing this: DeprecationWarning: Buffer() is deprecated due to security and usability issues. At the user.model.js, we need to change like followings: var salt = Buffer.alloc(this.salt, 'base64'); Thank you.