parse-community / parse-community/parse-server
Parse.User.requestEmailVerification fails with code -1 when user is already verified
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
New Issue Checklist
- [ x] I am not disclosing a vulnerability.
- [ x] I am not just asking a question.
- [ x] I have searched through existing issues.
- [ x] I can reproduce the issue with the latest version of Parse Server.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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