Skip to content

Parse.User.requestEmailVerification fails with code -1 when user is already verified #7740

Open
@jonas-db

Description

@jonas-db

New Issue Checklist

Issue Description

A specific error code when the email verification fails when the user is already verified

Steps to reproduce

call Parse.User.requestEmailVerification when user is already verified

Actual Outcome

{"code":-1,"stack":"Error: Email anmphfnejxtxzkilwb@kvhrw.com is already verified"}

Expected Outcome

A better error code instead of -1
should have message instead of stackproperty?

Environment

Server

  • Parse Server version: "^5.0.0-beta.4",
  • Operating system: macos
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): MongoDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$10Bounty applies for fixing this issue (Parse Bounty Program)type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions