fix(gravatar): Update hash algorithm to SHA-256 for improved security (#1550)

This commit is contained in:
Fabian Reinold
2026-02-23 16:59:55 +01:00
committed by GitHub
parent 61753f08eb
commit 605dcace54
@@ -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`;
},
};