How to update user account?? #423
-
I want to update Display name and photo of the user. I saw a func in auth.gd but this only changes Display name, photo is not changing
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hm. I think I see what's happening. When the user's account info is updated, we don't automatically get the updated values - it's not sent back to the client like that, I'm guessing. You can try this as a way to fix it for now (I'll consider adding something to update the local values) - when you call that function, do it this way (formatting here sucks, sorry):
In theory, the above should update the user and return it. If you don't want to use that yield, you can just connect to |
Beta Was this translation helpful? Give feedback.
-
Ah, dangit, I see why. I can tell you how to fix it locally and I can try to fix it eventually, but I'm fairly busy right now so can't implement what I know to be a fix for a little while. Here's what I'd do:
In theory, that should work. The other issue you'll see though is if you look in the _to_string below it, it doesn't include the photo_url, so you wouldn't physically see it when printing it out. You can add it easily though, and I will do so when I have time to implement the above and make sure it works. Let me know if it works for you, and that would make it get implemented by me faster. :P |
Beta Was this translation helpful? Give feedback.
Ah, dangit, I see why. I can tell you how to fix it locally and I can try to fix it eventually, but I'm fairly busy right now so can't implement what I know to be a fix for a little while. Here's what I'd do:
photo_url = provider_user_info[0].get("photoUrl", "")
) and copy it, then paste it above the if statement above it and unindent it one tabprovider_user_info[0]
to just bep_userdata
In theory, that should work. The other issue you'll see though is if you look in the _to_string below i…