Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete user object in verifyEmail function if both username and email are changed #8890

Closed
4 tasks done
mtrezza opened this issue Jan 15, 2024 · 4 comments · Fixed by #8889
Closed
4 tasks done
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@mtrezza
Copy link
Member

mtrezza commented Jan 15, 2024

New Issue Checklist

Issue Description

Incomplete user object in verifyEmail function if both username and email are changed. The user object appears as if it was unsaved, without objectId, createdAt and other fields being set. This issue does not occur if only the email address or only the username are changed. This was not an issue before the introduction of conditional email verification, but that feature requires the full user object to be made available to the developer.

Steps to reproduce

See failing test in #8889.

Actual Outcome

User object appears as if it was unsaved and is missing fields.

Expected Outcome

Complete user object should be passed to verifyEmail function.

Environment

Server

  • Parse Server version: 7.0.0-alpha.7
Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Jan 15, 2024
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.0.0-alpha.8

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Jan 15, 2024
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.0.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Mar 19, 2024
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.0.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
2 participants