fix(gravatar): Update hash algorithm to SHA-256 for improved security (#1550)
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = {
|
|||||||
return null;
|
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`;
|
return `${sails.config.custom.gravatarBaseUrl}${hash}?s=180&d=initials`;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user