Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Orlayhemmy committed May 11, 2018
1 parent 92b87a8 commit 6bd0ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ module.exports = function (passport) {
if (!user) {
user = new User({
name: profile._json.name,
email: profile._json.name.email,
username: profile._json.name,
email: profile._json.email,
username: profile._json.given_name,
provider: 'google',
google: profile._json, // eslint-disable-line
imageUrl: profile._json.picture // eslint-disable-line
Expand Down

0 comments on commit 6bd0ca0

Please sign in to comment.