Skip to content

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

Closed
@mtrezza

Description

@mtrezza

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions