Improve helpfulness of sso error messages

GitOrigin-RevId: 4459603cb1a84c21143e47eb817f9455aa9015e9
This commit is contained in:
Simon Gardner
2025-10-07 10:46:07 +01:00
committed by Copybot
parent f326f29a83
commit 4a5b29d166
2 changed files with 4 additions and 4 deletions

View File

@@ -95,13 +95,13 @@ class SAMLAlreadyLinkedError extends OError {
class SAMLEmailNotAffiliatedError extends OError {
get i18nKey() {
return 'institution_account_tried_to_add_not_affiliated'
return 'institution_account_tried_to_add_not_affiliated_2'
}
}
class SAMLEmailAffiliatedWithAnotherInstitutionError extends OError {
get i18nKey() {
return 'institution_account_tried_to_add_affiliated_with_another_institution'
return 'institution_account_tried_to_add_affiliated_with_another_institution_2'
}
}

View File

@@ -1100,10 +1100,10 @@
"insert_x_rows_below": "Insert __rows__ rows below",
"institution": "Institution",
"institution_account": "Institution Account",
"institution_account_tried_to_add_affiliated_with_another_institution": "This email is <b>already associated</b> with your account but affiliated with another institution.",
"institution_account_tried_to_add_affiliated_with_another_institution_2": "The email <b>__email__</b> is <b>already associated</b> with your account but affiliated with another institution.",
"institution_account_tried_to_add_already_linked": "This institution is <b>already linked</b> with your account via another email address.",
"institution_account_tried_to_add_already_registered": "The email/institution account you tried to add is <b>already registered</b> with __appName__.",
"institution_account_tried_to_add_not_affiliated": "This email is <b>already associated</b> with your account but not affiliated with this institution.",
"institution_account_tried_to_add_not_affiliated_2": "The email address provided to us when you logged in was not an institutional email address. Your institution provided the email <b>__email__</b>, which is not considered an institutional email. Overleaf currently requires that an institutional email address is sent as part of the SSO login. Please follow up with your IT Services team to ensure that an institutional address is provided at login time.",
"institution_account_tried_to_confirm_saml": "This email cannot be confirmed. Please remove the email from your account and try adding it again.",
"institution_acct_successfully_linked_2": "Your <0>__appName__</0> account was successfully linked to your <0>__institutionName__</0> institutional account.",
"institution_and_role": "Institution and role",