-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse.User.requestEmailVerification fails with code -1 when user is already verified #7740
Comments
Thanks for opening this issue!
|
Hi @mtrezza , May I work on this? |
@pash2048 sure, please go ahead. I guess the first step would be to identify a better cloud code error number. I suggest you take a look at the Parse Error section in the contribution guide. I reclassified this as |
Dear @mtrezza , thanks for the opportunity. Very cool. Thumbs up! |
Sounds good. For the Parse Server PR: changing the error code is a breaking change. We need to deprecate the old error code with a temporary server option to switch to the new error code. According to our deprecation policy, the new error code will be used by default in Parse Server 7 (2023). |
I did not figure out how I deprecate the old error code with a temporary server option to switch to the new error code. Can you please give me a hint? |
Sure, please see the contribution guide for how to deprecate a feature and how to add a parse server option. For each of these there are existing usages in code where you can see how it's implemented. |
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 ofstack
property?Environment
Server
Database
MongoDB
The text was updated successfully, but these errors were encountered: