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
This commit is contained in:
Jessica Lawshe 2023-12-07 08:28:13 -06:00 committed by Copybot
parent 5dbe1a6121
commit c2f8099793

View file

@ -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,
}