Thanks for this awesome plugin, we have integrated it and now our users don’t have to remember a different account for our community forum.
I was looking into a bug we were seeing, with default avatar settings, the avatar is being re-written every login.
If you set a custom picture upload, it’s persisted.
When you log out, then log back in with oauth2, the avatar is reset to the one controlled by the setting
external_system_avatars_enabled (The one with just the user initials)
After putting some logging in, I noticed user.rb
after_save is being called after login every time, and as such
refresh_avatar is called.
I tried to look at this page to see if this is an existing bug, but can’t find anything.
So I looked at the github repo for this plugin, and it’s still v0.3 at the top of plugin.rb, but the code is very different to what we have.
I guess I can only get support if I’m on the latest code of this plugin, how can I know when it is safe to patch my servers to the latest code for discourse-oauth2-basic?
Have you seen this avatar reset bug before?
Thanks so much