mirror of
https://github.com/plankanban/planka.git
synced 2026-08-28 18:17:51 +08:00
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;
|
||||
}
|
||||
|
||||
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`;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user