Delete seed tasks, email signup now defaults a picture

This commit is contained in:
Nathan Leniz
2015-03-09 06:51:47 +09:00
parent 389078b732
commit 8608f48d8c
5 changed files with 4 additions and 3126 deletions

View File

@@ -67,7 +67,7 @@ passport.use(new FacebookStrategy(secrets.facebook, function(req, accessToken, r
user.tokens.push({ kind: 'facebook', accessToken: accessToken });
user.profile.name = user.profile.name || profile.displayName;
user.profile.gender = user.profile.gender || profile._json.gender;
user.profile.picture = user.profile.picture || 'https://graph.facebook.com/' + profile.id + '/picture?type=large';
user.profile.picture = user.profile.picture || 'https://s3.amazonaws.com/freecodecamp/favicons/apple-touch-icon-180x180.png';
user.save(function(err) {
req.flash('info', { msg: 'Facebook account has been linked.' });
done(err, user);