Open
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 stack
property?
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