diff --git a/server/api/helpers/users/build-gravatar-url.js b/server/api/helpers/users/build-gravatar-url.js index 408fc654..b5f52af4 100644 --- a/server/api/helpers/users/build-gravatar-url.js +++ b/server/api/helpers/users/build-gravatar-url.js @@ -20,7 +20,7 @@ module.exports = { return null; } - const hash = crypto.createHash('md5').update(inputs.record.email).digest('hex'); + const hash = crypto.createHash('sha256').update(inputs.record.email).digest('hex'); return `${sails.config.custom.gravatarBaseUrl}${hash}?s=180&d=initials`; }, };