parse-community / parse-community/parse-server

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

Open
#7,740 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Parse.User.requestEmailVerification for a user who is already verified and inspect how the error response is produced. Done means the response uses a specific error code and clearly defined message or stack behavior, with coverage for this scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, authentication, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.