diff --git a/config/passport.js b/config/passport.js index 27474884874..4bacdda73ac 100755 --- a/config/passport.js +++ b/config/passport.js @@ -55,7 +55,7 @@ passport.use(new InstagramStrategy(secrets.instagram,function(req, accessToken, // Similar to Twitter API, assigns a temporary e-mail address // to get on with the registration process. It can be changed later // to a valid e-mail address in Profile Management. - profile.username + "@instagram.com"; + user.email = profile.username + "@instagram.com"; user.profile.website = profile._json.data.website; user.profile.picture = profile._json.data.profile_picture; user.save(function(err) { diff --git a/generator.js b/generator.js index b2f840c326f..788ead2d11e 100644 --- a/generator.js +++ b/generator.js @@ -949,7 +949,7 @@ inquirer.prompt({ // Similar to Twitter API, assigns a temporary e-mail address // to get on with the registration process. It can be changed later // to a valid e-mail address in Profile Management. - profile.username + "@instagram.com"; + user.email = profile.username + "@instagram.com"; user.profile.website = profile._json.data.website; user.profile.picture = profile._json.data.profile_picture; user.save(function(err) {