fix email hash of gravatar

This commit is contained in:
pahans 2014-09-11 16:58:00 +05:30
parent 3cc5dd417c
commit 8054c27d56

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('&');