Merge branch 'staging' of http://github.com/FreeCodeCamp/freecodecamp into staging

This commit is contained in:
terakilobyte
2015-06-11 15:18:45 -04:00
3 changed files with 47 additions and 29 deletions

View File

@@ -1,3 +1,5 @@
var defaultProfileImage =
require('../../common/utils/constantStrings.json').defaultProfileImage;
var message =
'Learn to Code JavaScript and get a Coding Job by Helping Nonprofits';
@@ -9,8 +11,7 @@ module.exports = function(app) {
function index(req, res, next) {
if (req.user && !req.user.picture) {
req.user.picture =
'https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png';
req.user.picture = defaultProfileImage;
req.user.save(function(err) {
if (err) { return next(err); }