forked from mirrors/amnezia-wg-easy
fixes: security stuff (#47)
Insecure randomness (high) gravatar: md5 insecure hash algorithm (high) Clear text transmission of sensitive cookie (medium)
This commit is contained in:
parent
8d3e355591
commit
4c7d763d24
2 changed files with 4 additions and 2 deletions
|
@ -131,7 +131,7 @@ new Vue({
|
|||
const clients = await this.api.getClients();
|
||||
this.clients = clients.map((client) => {
|
||||
if (client.name.includes('@') && client.name.includes('.')) {
|
||||
client.avatar = `https://www.gravatar.com/avatar/${md5(client.name)}?d=blank`;
|
||||
client.avatar = `https://www.gravatar.com/avatar/${sha512(client.name)}?d=blank`;
|
||||
}
|
||||
|
||||
if (!this.clientsPersist[client.id]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue