Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
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