fix(api): reject a mail-less email domain by its own code (#2608)

This commit is contained in:
Hampus authored and Hampus Kraft committed 2026-09-08 22:17:53 +02:00
1 parent 8cc485cf81
commit c577b97f35
12 files changed
+302 -23

No files matched your search

@@ -83,6 +83,7 @@ const EMAIL_VALIDATION_CODES = new Set<string>([
ValidationErrorCodes.INVALID_EMAIL_FORMAT,
ValidationErrorCodes.INVALID_EMAIL_LOCAL_PART,
ValidationErrorCodes.INVALID_EMAIL_ADDRESS,
ValidationErrorCodes.EMAIL_DOMAIN_CANNOT_RECEIVE_MAIL,
]);
const CODE_SESSION_VALIDATION_CODES = new Set<string>([
ValidationErrorCodes.EMAIL_TOKEN_EXPIRED,