Skip to content

BeforeSave Hook recieves invalid object when verifying emails #4503

Closed
@elios264

Description

@elios264

We use GitHub Issues for bugs.

Issue Description

The beforeSave hook when verifying an email receives an invalid object for Parse.User:

capture

the object has no Id, so calling object.dirty always returns true and all my validations fail.

Environment Setup

  • Server
    • parse-server version 2.7.1
    • Operating System: Windows 10
    • Localhost or remote server? localhost

EDIT:

This only happens when using:

emailVerifyTokenValidityDuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions