From a5e1830d5fa9d2292c1624b5d999f60309ba1063 Mon Sep 17 00:00:00 2001 From: Sergey Gavruk Date: Sun, 4 May 2014 01:09:34 +0300 Subject: [PATCH] Fix instagram email --- config/passport.js | 2 +- generator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {