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

Merge pull request #30698 from overleaf/jel-account-linking-managed-users

[web] Do not show option to add email on account linking page for groups with managed users

GitOrigin-RevId: cb36ad1afd4c1bd84009a871adfbb01703227376
Jessica Lawshe 9 месяцев назад
Родитель
Сommit
0b83bbba25

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

@@ -2005,7 +2005,7 @@
   "saml_authentication_required_error": "Other login methods have been disabled by your group administrator. Please use your group SSO login.",
   "saml_commons_unavailable": "Institution SSO is currently unavailable. For more details, please see <0>__linkText__</0>.",
   "saml_create_admin_instructions": "Choose an email address for the first __appName__ admin account. This should correspond to an account in the SAML system. You will then be asked to log in with this account.",
-  "saml_email_not_in_account_error_managed_users": "Your identity provider returned __email__, which is not already on your current __appName__ account. You will need to log out and create a new __appName__ account with __email__ via the SSO log in page. Once this is done, you can <0>transfer your existing projects</0> to the new account.",
+  "saml_email_not_in_account_error_managed_users": "Your organization’s identity provider returned <0>__email__</0>. You will need to use this address to create an account via SSO. You can <1>transfer your existing projects</1> to the new account.",
   "saml_email_not_recognized_error": "This email address isn’t set up for SSO. Please check it and try again or contact your administrator.",
   "saml_email_on_another_account_error": "Your identity provider returned __email__, which is on another __appName__ account. Please log out and log in with the other account to join your __teamName__ enterprise group.",
   "saml_identity_exists_error": "Sorry, the identity returned by your identity provider is already linked with a different Overleaf account.  Please contact your administrator for more information.",

+ 2 - 4
services/web/test/frontend/features/group-management/components/domain-capture.spec.tsx

@@ -102,10 +102,8 @@ describe('<DomainCapture />', function () {
 
       cy.findByRole('alert').should(
         'contain.text',
-        `Your identity provider returned ${institutionEmail}, which ` +
-          `is not already on your current Overleaf account. You will need to ` +
-          `log out and create a new Overleaf account with ${institutionEmail} ` +
-          `via the SSO log in page. Once this is done, you can ` +
+        `Your organization’s identity provider returned ${institutionEmail}. ` +
+          `You will need to use this address to create an account via SSO. You can ` +
           `transfer your existing projects to the new account.`
       )
       cy.findByRole('link', {