Jump to content

Processing avatars with custom login method


The Krotek

Recommended Posts

New custom login method has an issue with processing avatars in some cases. Some networks don't return actual URL for avatar, but instead return some kind of ID, which then should be inserted in generic URL.

For example, Yandex returns default_avatar_id, which then should be inserted in this URL:

https://avatars.yandex.net/get-yapic/{default_avatar_id}/islands-200

Currently it is not possible to receive an avatar from Yandex and all similar cases due to limitations in custom login handler. But this can be easily fixed by checking, if "Profile Photo URL Parameter" is an URL, parse avatar ID from it (e.g: {default_avatar_id}) and then return the actual URL for avatar.

Very easy to implement, I hope you will add it in the upcoming release.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...