Просмотр исходного кода

Improve helpfulness of sso error messages

GitOrigin-RevId: 4459603cb1a84c21143e47eb817f9455aa9015e9
Simon Gardner 10 месяцев назад
Родитель
Сommit
4a5b29d166
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      services/web/app/src/Features/Errors/Errors.js
  2. 2 2
      services/web/locales/en.json

+ 2 - 2
services/web/app/src/Features/Errors/Errors.js

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

+ 2 - 2
services/web/locales/en.json

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