diff --git a/models/User.js b/models/User.js index e3c87848f4..723e8cccd6 100644 --- a/models/User.js +++ b/models/User.js @@ -52,7 +52,7 @@ userSchema.methods.comparePassword = function(candidatePassword, cb) { userSchema.methods.gravatar = function() { var md5 = crypto.createHash('md5'); md5.update(this.email); - return 'https://gravatar.com/avatar/' + md5.digest('hex').toString() + '?s=200'; + return 'https://gravatar.com/avatar/' + md5.digest('hex').toString() + '?s=200&d=retro'; }; module.exports = mongoose.model('User', userSchema); diff --git a/views/account/profile.jade b/views/account/profile.jade index 02dfbee1c4..77136d706b 100644 --- a/views/account/profile.jade +++ b/views/account/profile.jade @@ -5,8 +5,8 @@ block content h3 Profile Information form.form-horizontal(action='/account/profile', method='POST') .row - .col-xs-2 - img(src="#{user.gravatar()}") + .col-md-2.col-xs-4 + img(src="#{user.gravatar()}", class='profile') small Change your photo at a(href="http://gravatar.com") Gravatar .col-xs-10