[+] Use all emails
This commit is contained in:
@@ -39,8 +39,8 @@ export default class LoginUser
|
|||||||
// Generate default avatar
|
// Generate default avatar
|
||||||
if (this.avatarUrl == null || this.avatarUrl == '')
|
if (this.avatarUrl == null || this.avatarUrl == '')
|
||||||
{
|
{
|
||||||
this.avatarUrl = `https://www.gravatar.com/avatar/${md5(this.emails[0])}?d=` + encodeURIComponent(
|
this.avatarUrl = [...this.emails.map(e => `https://www.gravatar.com/avatar/${md5(e)}?d=404`),
|
||||||
`https://ui-avatars.com/api/${this.firstName.charAt(0)}${this.lastName.charAt(0)}/128`);
|
`https://ui-avatars.com/api/${this.firstName.charAt(0)}${this.lastName.charAt(0)}/128`].join(',');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user