Fixed gravatar hash to lowercase the email address.

http://en.gravatar.com/site/implement/images/python/
This commit is contained in:
Asa Ayers 2013-05-23 14:37:15 -04:00
parent 29d9ff46e8
commit a681c4ffbd

View file

@ -2014,7 +2014,7 @@ class MSocialServices(mongo.Document):
},
'gravatar': {
'gravatar_picture_url': "https://www.gravatar.com/avatar/" + \
hashlib.md5(user.email).hexdigest()
hashlib.md5(user.email.lower()).hexdigest()
},
'upload': {
'upload_picture_url': self.upload_picture_url