Skip to content

[FIX] Move the set Avatar call on user creation to make sure the user has username#14665

Merged
sampaiodiego merged 1 commit intodevelopfrom
fix-set-avatar-on-user-creation
Jun 14, 2019
Merged

[FIX] Move the set Avatar call on user creation to make sure the user has username#14665
sampaiodiego merged 1 commit intodevelopfrom
fix-set-avatar-on-user-creation

Conversation

@MarcosSpessatto
Copy link
Copy Markdown
Contributor

@MarcosSpessatto MarcosSpessatto commented May 28, 2019

Closes #14637
Closes #14755
We must the username property to be able to set the user avatar. Otherwise we'll get an error for trying to set the avatar name to undefined.
Previously this worked due to the fact that MongoDB accept undefined fields, behavior removed in this PR.

@sampaiodiego sampaiodiego merged commit e366e0b into develop Jun 14, 2019
@sampaiodiego sampaiodiego deleted the fix-set-avatar-on-user-creation branch June 14, 2019 05:04
@sampaiodiego sampaiodiego mentioned this pull request Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mongodb exception in callback $set empty "OAuth" I'm having trouble logging in for the first time.

3 participants