mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-26 13:20:11 +03:00
Fix Gravatar support
This commit is contained in:
parent
1412f63dfa
commit
f61b187402
4 changed files with 11 additions and 3 deletions
|
@ -138,7 +138,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/${sha512(client.name)}?d=blank`;
|
||||
client.avatar = `https://gravatar.com/avatar/${sha256(client.name.toLowerCase())}.jpg`;
|
||||
}
|
||||
|
||||
if (!this.clientsPersist[client.id]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue