Skip to content

Commit 0a5b63b

Browse files
authored
Added an error code for email already verified
See parse-community/parse-server##7740 This PR adds a new error code when users requestEmailVerification for verified email, now the parse server sends the OTHER_CAUSE error code and it needs A better error code instead of -1 and should have a message instead of stack property.
1 parent d084ac9 commit 0a5b63b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ParseError.js

+9
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,15 @@ ParseError.EMAIL_MISSING = 204;
433433
*/
434434
ParseError.EMAIL_NOT_FOUND = 205;
435435

436+
/**
437+
* Error code indicating that the email has already been verified and can not be verified again.
438+
*
439+
* @property {number} EMAIL_ALREADYـVERIFIED
440+
* @static
441+
*/
442+
ParseError.EMAIL_ALREADYـVERIFIED = 212;
443+
444+
436445
/**
437446
* Error code indicating that a user object without a valid session could
438447
* not be altered.

0 commit comments

Comments
 (0)