Where is image coming from?


#1

I’d like to change the image, but I can’t seem to find it.


#2

You need to setup a gravatar that matches an email and then go and fill your email in the Settings under Profile.


#3

Thanks. If we’re using JWT, it doesn’t need to match the email right?


#4

Don’t you provide the email inside the jwt?


#5

I do, but maybe I misunderstood.

I thought when you say gravatar, you meant providing a URL for the avatar.

"avatar": "https:/gravatar.com/avatar/abc123",

I think what you’re referring to is this

"email": "jdoe@example.com",

If email can’t be resolved to a gravatar, then it show that default image.

Is there a way to change that default image? So when it cannot find a gravatar, it will display our custom image?


#6

Yes you can set in interface_config.js
RANDOM_AVATAR_URL_PREFIX and RANDOM_AVATAR_URL_SUFFIX, which are used for the default avatar.