Merge pull request #391 from pahans/fix-email-hash-gravatar

fix email hash of gravatar
This commit is contained in:
Sacha Greif 2014-09-12 07:55:21 +09:00
commit 6118ca0f31

View file

@ -6,7 +6,7 @@ Gravatar = {
var protocol = options.secure ? 'https' : 'http';
delete options.secure;
var hash = user.email_hash;
var hash = CryptoJS.MD5(getEmail(Meteor.user()).trim().toLowerCase()).toString();
var url = protocol + '://www.gravatar.com/avatar/' + hash;
var params = _.map(options, function(val, key) { return key + "=" + val;}).join('&');