From c2f809979348ca80637a05b07a8f604298d8c2dd Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Thu, 7 Dec 2023 08:28:13 -0600 Subject: [PATCH] Merge pull request #16146 from overleaf/jel-sso-login-invalid-email-error [web] Show error message for invalid emails on SSO log in page GitOrigin-RevId: 511cd05754f9019bf755ff4909b4579c6dcd7fbb --- services/web/app/src/Features/Errors/Errors.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/web/app/src/Features/Errors/Errors.js b/services/web/app/src/Features/Errors/Errors.js index e5358670f8..f64200fbd0 100644 --- a/services/web/app/src/Features/Errors/Errors.js +++ b/services/web/app/src/Features/Errors/Errors.js @@ -238,6 +238,12 @@ class InvalidQueryError extends OErrorV2CompatibleError { class AffiliationError extends OError {} +class InvalidEmailError extends OError { + get i18nKey() { + return 'invalid_email' + } +} + class InvalidInstitutionalEmailError extends OError { get i18nKey() { return 'invalid_institutional_email' @@ -288,5 +294,6 @@ module.exports = { DocHasRangesError, InvalidQueryError, AffiliationError, + InvalidEmailError, InvalidInstitutionalEmailError, }